Q:

What should be done when deploying Rails 3 application?

I would like to deploy my Rails 3 application. I use DreamHost.
My question is what changes should I do to my application before deploying it.
I mean should I change RAILS_ENV to production somewhere ?
How should I create the database on the server (I use mysql) ? via rake db:create RAILS_ENV=production ? Should I create the development database on the server too ?
Thanks for any tips!

A:

You really need to have a deployment script. 
Check out Capistrano. It will save you hours and hours of work. You can remotely migrate the production db with this.
The only database you should have in your production environment is the production database. The development and testing environments should not be accessible.
What does your http server stack look like? Apache? Nginx? Any details will depend on how you have things set up. I answered a question here about how my server is configured.

