Capistrano – deploy to specific revision (= tag, branch, hash)

To deploy something other than the HEAD, you must use the -s option.

Below are examples for git.

cap -s branch=my_branch deploy

cap -s tag=my_tag deploy

Advertisements