I am relatively inexperienced in rails and I am confused by where Capistrano fits into the rails app life cycle.
From my understanding the following steps are involved in getting a rails app completed.
However it is not clear to me how the next steps work. In particular:
a) The live rails app needs to run in production mode at domain.com, I presume passenger does this?
b) If I have created the app at domain.com:3000 do I need to do anything in the rails config before it works at domain.com?
c) Where does capistrano fit in? If passenger can make my app work at domain.com, what does capistrano do?
a) Exactly, passenger working with a web server like Apache does this for you.
b) Your local web server is not the same with Passenger. To set it up in your domain, you would need to normally create your domain and set a website as you normally set a website in your apache(or other) configuration.
c) Capistrano is a gem that allows you to write scripts which automate things, like restarting the web server, or setting particular production versions and so on.
For more information on Capistrano :
http://railscasts.com/episodes/133-capistrano-tasks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With