当我运行cap deploy时,它提示它无法访问日志文件:
Rails Error: Unable to access log file. Please ensure that /var/superduperapp/releases/20120329011558/log/production.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.
看来我必须手动创建一个日志文件夹。有没有办法用Capistrano做到这一点,所以无论谁部署它,都不必记住他们每次进行新部署时都要创建该文件夹?
最佳答案
在运行cap deploy:setup
时,这些文件夹应该由capistrano创建,您已经运行了吗?要检查一切是否正常,您可以先运行cap deploy:check
。
关于ruby-on-rails - Cap部署不会创建共享/日志文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9920564/