开发者

What should be done when deploying Rails 3 application?

I would like to deploy my Rails 3 application. I use DreamHost.

My question 开发者_StackOverflow中文版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!


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜