我试图运行我的应用程序并检查 production.log 上的一些输出。但是Ruby on Rails会引发此错误。阿帕奇日志
Rails Error: Unable to access log file. Please ensure that /var/www/somefolder/someapp/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.
我已经执行了必要的 chmod 666 production.log 以使其工作,但我意识到该文件处于 root 访问权限下。
所以我的文件权限是
-rw-rw-rw- 1 root root 20845 2010-03-18 01:18 production.log
我不确定如何允许 Ruby on Rails 访问此文件。我对管理 Linux 生产环境还很陌生,所以我请求您原谅我的无知。