I am using capistrano to deploy a RoR application. The codebase is in a git repository, and branching is widely used in development. Capistrano uses deploy.rb f
deploy.rb
If you're using capistrano-multistage, you only need to run
cap -s branch=$MY_BRANCH deploy
or
cap -s branch=$MY_BRANCH production deploy
without any further edit to your deploy.rb.