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.
Originally Posted by MiiJaySung
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
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.
RAILS_ENV = ENV['RAILS_ENV'] || 'development'