about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorAlex Dunn <dunn.alex@gmail.com>2017-04-15 19:01:27 -0700
committerEugen <eugen@zeonfederated.com>2017-04-16 04:01:27 +0200
commit6a1ac9b31fb6a8270bb6e25b1a8a459abf7a4f25 (patch)
treeefe33b9ddbaeceb4bde376d38ae580b31b4b4a46 /config
parent3834e1e69b951d5b26768282bf3bd1aae8f45944 (diff)
capistrano: allow overriding repo_url and branch (#1889)
Diffstat (limited to 'config')
-rw-r--r--config/deploy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index cbfb8ec9c..9bcf907be 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -1,8 +1,8 @@
 lock '3.7.2'
+set :repo_url, ENV.fetch('REPO', 'https://github.com/tootsuite/mastodon.git')
+set :branch, ENV.fetch('BRANCH', 'master')
 
 set :application, 'mastodon'
-set :repo_url, 'https://github.com/tootsuite/mastodon.git'
-set :branch, 'master'
 set :rbenv_type, :user
 set :rbenv_ruby, File.read('.ruby-version').strip
 set :migration_role, :app