为什么我们得到的命令耙分贝的错误:迁移耙分贝:迁移RAILS_ENV =发展
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)
请告诉我错在那里。我试图部署通过capistrano,我用这个教程设置capistrano http://teachmetocode.com/screencasts/basic-deployment-with-capistrano/
感谢@Isotope我触及了development.log并将r/w权限设置为0666,但rake始终中止。 – amarradi 2012-03-31 13:03:50
如果您没有写入日志目录,那么'cap deploy:check'将失败。当然,你已经运行了'cap deploy:setup'和'cap deploy:check',并且修复了所有问题。您可能会缺少database.yml,因为它不在scm中,请参阅下面的答案。 – tehfoo 2013-03-14 19:33:02