From 99f1fe45a3dacae62d8e0f783468c0d2738669ef Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Fri, 2 Sep 2016 15:05:48 +0200 Subject: [PATCH] Allow to specify a branch to deploy for staging --- config/deploy/staging.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index 4cdc5169..5093b58e 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -1,2 +1,3 @@ server '10.210.0.50', roles: [:app, :db, :puma_nginx, :web], user: 'debian' set :rails_env, "staging" +set :branch, ENV['BRANCH'] if ENV['BRANCH']