how to change mode

hi all,

            i finished my ror application in development mode.now i want to change the mode to "test" and "production".how to do it.how to change my application to "test" and "production" modes.

Change the envirument.rb file, to enable production mode. (remove the comment out of ENV production line)

Please note when running migrtation, you need to use: rake db:migrate RAILS_ENV="production" (for usage of the correct database)

regards svend

Karthikragunath Bhavani wrote:

            i finished my ror application in development mode.now i want to change the mode to "test" and "production".how to do it.how to change my application to "test" and "production" modes.

You should have written unit tests for your app, as you developed it. 'rake test' runs in test mode, and it depends on the test: key in your database.yml file, and your config/environments/test.rb file.

Run your server in development mode with one of these:

   RAILS_ENV=production script/server    script/server -e production