Reputation: 267290
How to set Rails application to Production mode? I'm using capistrano
On my server, doing a rails console shows its in development mode (puts RAILS_ENV)
Upvotes: 0
Views: 1634
Reputation: 7731
It really depends on the software you're using to serve your production site. For example, Passenger sets the environment to production by default.
You should investigate the configuration for your production application server.
Upvotes: 1
Reputation: 11038
Make sure you include
ENV['RAILS_ENV'] ||= 'production'
in your environment.rb
file.
Upvotes: 0