我正在尝试使用capistrano部署应用: 但是在捆绑安装完成后会出现此消息:
*** [err :: my-server.net] Rails Error: Unable to access log file.
Please ensure that /home/rails/my_app/staging/releases/20130227162210/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.
我已尝试按照此处的建议禁用日志记录,但问题仍然存在:
Rails 3.2.6: Getting 'Unable to access log file' error for development.log file
但没有。
另一个选项是更改服务器上已创建文件的默认权限,以便它不会抱怨权限。有什么想法吗?