0

我正在将我的 Web 应用程序部署到我的服务器上,并且一切正常,除了我找不到摆脱以下错误消息的方法。在部署之前,我的日志中有一个 development 和 production.rb 文件,但是当推送到服务器时,那里什么都没有,我无法创建它。我一直在寻找其他解决方案,但到目前为止没有任何效果,我该如何解决这个错误?

Rails Error: Unable to access log file. Please ensure that
/var/www/websites/public/appname/releases/20120608236602/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.
4

1 回答 1

1

正如该错误消息所述,日志记录进程无法访问日志文件。这将是由于对 /var/www/websites/public/appname/releases/20120608236602/log.

您可以使用以下命令更改该目录的权限:

chmod -R 0666 /var/www/websites/public/appname/releases/20120608236602/log 
于 2012-06-09T01:19:29.127 回答