stalker beanstalkd,加载 Rails env 时出现 Rails 日志文件错误
config/workers.rb
require File.expand_path("../config/environment", __FILE__)
当我运行 stalk ./config/workers.rb 时,出现以下(臭名昭著的)错误:
log/development.log
Rails 错误:无法访问日志 文件。请确保存在并且 是 chmod 0666。日志级别已 引发为 WARN 并定向输出 到 STDERR,直到问题得到解决。
请注意,它在顶部引用了日志文件,在错误消息内部它没有引用路径...有人可以向我解释一下吗?我准备好拔掉一些头发了...
谢谢!
只是为了确保,这是我的 ls -la...没有用户问题,因为我是从 mac 中的用户运行它...
-rw-rw-rw-@ 1 ericman staff 0 Feb 10 19:11 development.log
config/workers.rb
require File.expand_path("../config/environment", __FILE__)
when I run stalk ./config/workers.rb
I get the following (notorious) error:
log/development.log
Rails Error: Unable to access log
file. Please ensure that exists and
is chmod 0666. The log level has been
raised to WARN and the output directed
to STDERR until the problem is fixed.
Notice that it cites the log file on top and inside the error message it does not cite the path... can someone explain this to me please? I'm ready to rip some hair out...
Thanks!
Just to make sure, here is my ls -la... there are no user issues cuz i'm running it from my user in mac...
-rw-rw-rw-@ 1 ericman staff 0 Feb 10 19:11 development.log
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的environments/development.rb(以及部署之前的product.rb)中显式写入
in your environments/development.rb (and production.rb before deploying) write explicitly