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
The command to start the Rails console in production mode:
rails console production
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With