From 1f412e21e5bfd09ac9717a1fb09b329ba54c2fc2 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 18 Sep 2018 20:46:42 +0200 Subject: Fix deploy scripts. + Ask for branch to deploy for staging (default is current branch) + Fix shared path in deploy script + Fix uploading of config and env files if they don't exist --- config/deploy/staging.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/deploy') diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index 469e3e0..20732be 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -1,2 +1,4 @@ server 'volse.local', user: 'norskurskog', roles: %w{app db web} -set :branch, 'staging' + +# Ask for which branch to deploy, default is current branch. +ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call -- cgit v1.2.3