爲什麼我們得到的命令耙分貝的錯誤:遷移耙分貝:遷移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