]> cat aescling's git repositories - mastodon.git/commitdiff
capistrano: allow overriding repo_url and branch (#1889)
authorAlex Dunn <dunn.alex@gmail.com>
Sun, 16 Apr 2017 02:01:27 +0000 (19:01 -0700)
committerEugen <eugen@zeonfederated.com>
Sun, 16 Apr 2017 02:01:27 +0000 (04:01 +0200)
config/deploy.rb

index cbfb8ec9c82b264a39bf5da393157b23a777fdc0..9bcf907be1ab375357aca558816d7976265e8f08 100644 (file)
@@ -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