summaryrefslogtreecommitdiffstats
path: root/config/deploy
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-09-18 20:46:42 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-09-18 20:46:42 +0200
commit1f412e21e5bfd09ac9717a1fb09b329ba54c2fc2 (patch)
treee649e7d8c59ae6116e3c5b6816bbc2251d657e14 /config/deploy
parent6f58dfae95befeeb4b654c7cb43389255dcb41cc (diff)
downloadnorsk-urskog-registrations-1f412e21e5bfd09ac9717a1fb09b329ba54c2fc2.tar.gz
norsk-urskog-registrations-1f412e21e5bfd09ac9717a1fb09b329ba54c2fc2.tar.bz2
norsk-urskog-registrations-1f412e21e5bfd09ac9717a1fb09b329ba54c2fc2.zip
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
Diffstat (limited to 'config/deploy')
-rw-r--r--config/deploy/staging.rb4
1 files changed, 3 insertions, 1 deletions
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