
Originally Posted by
MiiJaySung
Basically, rails has two main modes, Development, and Production. You can change this in ./config/database.yml if my brain serves me right. Basically production mode uses some clever cache tricks to speed things up, and hides any complex errors in your apps so there is no security compromises. Development modes make give you more detaild error messages.
Very close, I think you mixed up the database configurations for the different contexts testing, development and production with the actual place where you can set the environment for production/development.
If you're using lighttpd you'll want to set this in your lighttpd.conf for you application, or httpd.conf (or an include file if you're using a vhost setup).
Of course the quick way is to change the line in the file config/environment.rb which reads
Code:
RAILS_ENV = ENV['RAILS_ENV'] || 'development'
Change the 'development' bit to 'production'. However I don't recommend this as it can make deploying applications one step more involved, if you can, try to set the appropriate environment variable in your web server conf.
Bookmarks