views:

41

answers:

2

How can one switch environment in Rails 3?

A: 

This is a monster of a question. I think the best compiled work towards accomplishing this with the least amount of mistakes is read this book :

http://www.railsupgradehandbook.com/

:D Good luck! I know of quite a few people who have already migrated all their projects to Rails3.

Trip
I really don't think that's what's being asked here.
John Topley
+3  A: 

Use the environment flag:

rails s --environment=production

Or set the RAILS_ENV environment variable.

jdeseno