Skip to content

Commit

Permalink
Use the same env vars for setup and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kleph authored and LeSim committed Apr 8, 2022
1 parent a1c2994 commit 94fa247
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
'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`.
Expand Down

0 comments on commit 94fa247

Please sign in to comment.