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?
Excellent!
The combination of answers from Pootsy was the ticket!
I did not know about the rake ‘RAILS_ENV’ parameter: cool!
Thanks, Arlen. I am running fastCGI. I will try that.
Yes, Mittineague, I am using a laptop.
This is a very small, internal, proof-of-concept application that will be moved to a corporate server very soon.
The laptop gives me a great opportunity to ‘work on the road’ with the proprietary application.
But you were very perceptive to catch that.