Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 4.0.0 console not starting in production environment

On my server I had console working fine last week. Now when I run

rails console RAILS_ENV=production

I get the following error.

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

In my production.rb I have the following line:

config.eager_load = true

rails console in development env does run on my server

like image 292
markhorrocks Avatar asked Jul 10 '13 11:07

markhorrocks


1 Answers

The command to start the Rails console in production mode:

rails console production
like image 112
Domon Avatar answered Sep 27 '22 18:09

Domon