部署 请教下部署时的一些问题 Capistrano3 + unicorn + nginx

luffycn · January 31, 2015 · 1404 hits

1, 为何我运行了 rake db:migrate RAILS_ENV=production 后,反而提示要运行 rake db:migrate RAILS_ENV=development,决定生产环境或者是开发环境的配置是怎么样的?

2, 尝试用 Capistrano3 + nginx + unicorn 去部署,发现困难重重,遇到的坑很多 有找类似 https://github.com/tablexi/capistrano3-unicorn 这样的 gem 去做,但感觉还缺少一些其它的配置,没有把整套配置,怎么用仔细解说下

我有找过 http://www.cubicleapps.com/articles/ubuntu-rails-ready-with-nginx-unicorn https://coderwall.com/p/yz8cha/deploying-rails-app-using-nginx-unicorn-postgres-and-capistrano-to-digital-ocean http://robert-reiz.com/2013/01/15/capistrano-rails-unicorn-nginx-rvm/

很多教程,step by step 也没能走通,总是有这个,那个问题的

3,为何更多的使用 rbenv ,,而不是 RVM 了?

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.