2013-07-10 59 views
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控制台没有我的服务器

回答

28

的命令上运行,开始在生产模式Rails的控制台扶手:

rails console production 
+0

这是一个公牛的眼睛!尼斯! – Anwar