Results 1 to 7 of 7
Thread: Rails - Switching to PRODUCTION
Nov 18, 2008, 13:14 #1
- Join Date
- May 2006
- Central Florida
- 191 Post(s)
- 4 Thread(s)
Rails - Switching to PRODUCTION
In config/environment.rb there is a line (remarked out):
# ENV['RAILS_ENV'] ||= 'production'
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
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?