In config/environment.rb there is a line (remarked out):
# ENV['RAILS_ENV'] ||= 'production'
and I would assume making that line active is the way to switch from development mode to production mode.
But the comment above the line states:
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
I have complete control over the server. It is physically in my lap!
So the real question becomes; what is the proper way to switch to production mode?
How do I handle the migration and databases?
When I uncommented that line I was unable to use 'rake db' tasks because rails still referenced the development database.
Can someone give me some guidance on how to take a completed app [running in development mode] into production?