Rails 4.0.0控制台无法在生产环境中启动

mar*_*cks 17 ruby-on-rails-3

在我的服务器上,我上周控制台工作正常.现在我跑的时候

rails console RAILS_ENV=production
Run Code Online (Sandbox Code Playgroud)

我收到以下错误.

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
Run Code Online (Sandbox Code Playgroud)

在我的production.rb中,我有以下几行:

config.eager_load = true
Run Code Online (Sandbox Code Playgroud)

开发环境中的rails控制台确实在我的服务器上运行

Dom*_*mon 28

在生产模式下启动Rails控制台的命令:

rails console production
Run Code Online (Sandbox Code Playgroud)