diff --git a/config/deploy/demo.rb b/config/deploy/demo.rb index 705b0366..a788415e 100644 --- a/config/deploy/demo.rb +++ b/config/deploy/demo.rb @@ -17,7 +17,7 @@ } #ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call -set :branch, 'demo' +set :branch, ENV['BRANCH'] || 'main' # Default deploy_to directory is /var/www/my_app_name set :deploy_to, '/home/ideals' diff --git a/config/deploy/production.rb b/config/deploy/production.rb index e38e9f2f..b299a2fc 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -17,7 +17,7 @@ } #ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call -set :branch, "production" +set :branch, "stable" # Default deploy_to directory is /var/www/my_app_name set :deploy_to, '/home/ideals'