A
A
Alexander Wolf2015-04-16 02:06:59
Ruby on Rails
Alexander Wolf, 2015-04-16 02:06:59

How to quickly deploy rails + nginx with capistrano 3?

Hey! Already clambered a bunch of articles on Habré and in Google. There are no intelligible docks on capistrano. We need to deploy the project very quickly. Preferably with 0 downtime deploy. And, if necessary, foreman.
Tell me how best to do this? The points. For well, there is no way out to overcome this monster =)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Lebedev, 2015-04-16
@mannaro

habrahabr.ru/post/246011 her? Much easier to run a script

G
gayavat, 2015-04-16
@gayavat

habrahabr.ru/post/120368

@
@mgyk, 2015-04-16
_

There are three options for this:
1) Nginx + Passenger. Put it on the server separately, and post the code capistrano. But, in my opinion, this is only a paid version of the passenger can
2) Nginx + Unicorn in this case, you need to run unicorn separately, you can use eye / foreman. He knows how to restart workers on USR2
3) Use heroku. Everything will work here by git push

R
Renat Ibragimov, 2015-04-16
@MpaK999

I once wrote a long time ago, but it is still relevant and still works how to deploy a full stack of RVM + MySQL + Ruby + Unicorn + NGINX + Capistrano - ufacode.ru/blog/linux/1100.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question