Capistrano: Passenger

Updating Passenger via Capistrano requires a few commands. Here’s all of them on 1 line with an explanation below:

c; git commit -am “some message”; git push origin master; cap deploy:update; cap deploy:restart

c => this is an alias to clear. It clears the screen so new output isn’t confused with old output

git commit => this commits to the local git repo

git push => pushes to github

cap deploy:update => updates the server with the new code (from github)

cap deploy:restart => Passenger won’t recognise the new files until you restart it. This does a ‘touch tmp/restart.txt’ 

Leave a Reply

Your email address will not be published. Required fields are marked *