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

时间:2013-07-10 11:30:26

标签: ruby-on-rails-3

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

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
开发环境中的

rails控制台确实在我的服务器上运行

1 个答案:

答案 0 :(得分:28)

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

rails console production
相关问题