Change a Rails application to production

Adler Medrado picture Adler Medrado · Dec 22, 2009 · Viewed 199.7k times · Source

How can I change my Rails application to run in production mode? Is there a config file, environment.rb for example, to do that?

Answer

BandsOnABudget picture BandsOnABudget · Oct 8, 2010

This would now be

rails server -e production

Or, more compact

rails s -e production

It works for rails 3+ projects.