From 94fa247d8d2dd82a075db399d84a39a23c20a64c Mon Sep 17 00:00:00 2001 From: kleph Date: Wed, 6 Apr 2022 11:19:28 +0200 Subject: [PATCH] Use the same env vars for setup and deploy --- config/deploy.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index b5831b7e6..e289888f8 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -26,18 +26,18 @@ shared_dirs = [ 'vendor/bundle' ] -set :domain, ENV.fetch('domain') +set :domain, ENV.fetch('DOMAINS') set :deploy_to, deploy_to # rubocop:disable DS/ApplicationName set :repository, 'https://github.com/betagouv/demarches-simplifiees.fr.git' # rubocop:enable DS/ApplicationName -set :branch, ENV.fetch('branch') +set :branch, ENV.fetch('BRANCH') set :forward_agent, true set :user, 'ds' set :shared_dirs, shared_dirs set :rbenv_path, "/home/ds/.rbenv/bin/rbenv" -puts "Deploy to #{ENV.fetch('domain')}, branch: #{ENV.fetch('branch')}" +puts "Deploy to #{ENV.fetch('DOMAINS')}, branch: #{ENV.fetch('BRANCH')}" # This task is the environment that is loaded for most commands, such as # `mina deploy` or `mina rake`.