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