summaryrefslogtreecommitdiffstats
path: root/config/deploy/staging.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/deploy/staging.rb')
-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