From cb67c14a51eafaa17a15bb3f187c1c0ae91ab2e4 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Tue, 8 Feb 2011 16:05:00 -0800 Subject: [PATCH] Make cap deploy follow a branch in deploy_config.yml --- config/deploy/production.rb | 3 +++ config/deploy/staging.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 93a356c2b..b8cb5dc83 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -7,5 +7,8 @@ set :user, config['user'] if config['password'] set :password, config['password'] end +if config['branch'] + set :branch, config['branch'] +end set :repository, config['repo'] server config['server'], :app, :web, :db, :primary => true diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index 9b04b862b..31108791a 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -7,5 +7,8 @@ set :user, config['user'] if config['password'] set :password, config['password'] end +if config['branch'] + set :branch, config['branch'] +end set :repository, config['repo'] server config['server'], :app, :web, :db, :primary => true