当我运行我的帽子部署时,它抱怨说它无法访问日志文件:
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做这样的,所以无论是部署它不必记住创建文件夹每次他们做新的部署?
解决方法
这些文件夹应该由capistrano创建,当您运行cap deploy:安装程序,你是否运行它?要检查一切是否正常,您可以运行cap部署:检查之前.