Warum wir einen Fehler auf dem Befehl rake db erhalten: esrake db: migrate RAILS_ENV = Entwicklung
Rails Error: Unable to access log file. Please ensure that /home/mahaloo/mahaloo/releases/20120329200051/log/development.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
rake aborted!
unable to open database file
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Was stimmt nicht migrieren. Ich versuchte, über capistrano zu deployen, ich habe dieses Tutorial verwendet, um capistrano http://teachmetocode.com/screencasts/basic-deployment-with-capistrano/
Danke @Isotope Ich habe das development.log berührt und die R/W-Rechte auf 0666 gesetzt, aber Rake wurde immer abgebrochen. – amarradi
Wenn Sie nicht in das Protokollverzeichnis schreiben, schlägt 'cap deploy: check' fehl. Natürlich haben Sie bereits 'cap deploy: setup' und' cap deploy: check' ausgeführt und Probleme behoben. Möglicherweise fehlt Ihnen die Datenbank.yml, weil sie nicht in scm enthalten ist, siehe meine Antwort unten. – tehfoo