Rails - Switching to PRODUCTION
In config/environment.rb there is a line (remarked out):
and I would assume making that line active is the way to switch from development mode to production mode.
# ENV['RAILS_ENV'] ||= 'production'
But the comment above the line states:
I have complete control over the server. It is physically in my lap!
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
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?