aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-04-02 10:56:03 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-04-02 10:56:03 +0200
commitd298fd7776427e74c425326d6bbdcc1d0a57d4e5 (patch)
treebd70321a5a636f75ca9bb7e4403e5775c58fbdc6 /config/deploy
parent522ec9f2b4a370b520c014fcfaed5a50a438f6a6 (diff)
downloadhmnoweb-d298fd7776427e74c425326d6bbdcc1d0a57d4e5.tar.gz
hmnoweb-d298fd7776427e74c425326d6bbdcc1d0a57d4e5.tar.bz2
hmnoweb-d298fd7776427e74c425326d6bbdcc1d0a57d4e5.zip
Commit deploy-configs to scm.
Diffstat (limited to 'config/deploy')
-rw-r--r--config/deploy/production.rb2
-rw-r--r--config/deploy/staging.rb6
2 files changed, 8 insertions, 0 deletions
diff --git a/config/deploy/production.rb b/config/deploy/production.rb
new file mode 100644
index 0000000..81993f8
--- /dev/null
+++ b/config/deploy/production.rb
@@ -0,0 +1,2 @@
+server 'volse.anduin.net', :user => 'hmno', :roles => %w{web app db}
+set :branch, 'master'
diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb
new file mode 100644
index 0000000..48e1b4d
--- /dev/null
+++ b/config/deploy/staging.rb
@@ -0,0 +1,6 @@
+server 'volse.local', :user => 'hmno', :roles => %w{web app db}
+
+set piwik_disabled, true
+
+# Ask for which branch to deploy, default is current branch.
+ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call