What should I do when deploying a Rails 3 application?

I would like to deploy my Rails 3 application. I am using DreamHost .

My question is what changes should be made to my application before deploying it.

I would like to change RAILS_ENV to production somewhere?

How to create a database on a server (I use mysql)? via rake db:create RAILS_ENV = production? Should I create a development database on the server too?

Thanks for any tips!

+4
source share
1 answer

You really need to have a deployment script.

Check out Capistrano . This will save you hours and hours of work. You can remotely migrate your production db with this.

The only database you should have in your production environment is the production database. Development and testing conditions should not be available.

What does your http mail server look like? Apache? Nginx? Any details will depend on how you set things up. I answered here about setting up my server.

+2
source

Source: https://habr.com/ru/post/1344526/


All Articles