Created
August 6, 2012 08:32
-
-
Save Frost/3272296 to your computer and use it in GitHub Desktop.
Select git branch to deploy with capistrano
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server 'staging.domain.tld', :app, :web, :db, :primary => true | |
set :branch do | |
default_tag = "master" | |
tag = Capistrano::CLI.ui.ask "What tag/branch do you want to deploy? [#{default_tag}] " | |
tag = default_tag if tag.empty? | |
tag | |
end | |
set :rails_env, 'staging' | |
set :keep_releases, 2 | |
set :port, 2222 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment