17
在我的服务器上,我的控制台上周工作正常。现在我运行时Rails 4.0.0控制台不在生产环境中启动
rails console RAILS_ENV=production
我得到以下错误。
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
* development - set it to false
* test - set it to false (unless you use a tool that preloads your test environment)
* production - set it to true
在我production.rb我有以下行:
config.eager_load = true
发展ENV控制台没有我的服务器
这是一个公牛的眼睛!尼斯! – Anwar