From 1b683ad0dadd5b33c18d16b70b1f3fd98be05f15 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 4 Jul 2019 17:17:02 +0200 Subject: [PATCH] Allow deploying a specific branch to production We could also use the deploy-secrets file; here we use `ENV["branch"]` for consistency with other environments. --- config/deploy/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 73cc0679a..eccfaa056 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -1,4 +1,4 @@ -set :branch, :master +set :branch, ENV["branch"] || :master server deploysecret(:server1), user: deploysecret(:user), roles: %w[web app db importer cron background] #server deploysecret(:server2), user: deploysecret(:user), roles: %w(web app db importer cron background)