Move variable definition to the top
This commit is contained in:
parent
4026984852
commit
1c55a38e81
1 changed files with 8 additions and 7 deletions
|
@ -15,21 +15,22 @@ require 'mina/rbenv'
|
||||||
# shared_dirs - Manually create these paths in shared/ on your server.
|
# shared_dirs - Manually create these paths in shared/ on your server.
|
||||||
# They will be linked in the 'deploy:link_shared_paths' step.
|
# They will be linked in the 'deploy:link_shared_paths' step.
|
||||||
|
|
||||||
set :domain, ENV.fetch('domain')
|
|
||||||
deploy_to = '/var/www/ds'
|
deploy_to = '/var/www/ds'
|
||||||
set :deploy_to, deploy_to
|
|
||||||
set :repository, 'https://github.com/betagouv/tps.git'
|
|
||||||
set :branch, ENV.fetch('branch')
|
|
||||||
set :forward_agent, true
|
|
||||||
set :user, 'ds'
|
|
||||||
set :rbenv_path, "/home/ds/.rbenv/bin/rbenv"
|
|
||||||
shared_dirs = [
|
shared_dirs = [
|
||||||
'log',
|
'log',
|
||||||
'sockets',
|
'sockets',
|
||||||
'tmp/pids',
|
'tmp/pids',
|
||||||
'tmp/cache'
|
'tmp/cache'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
set :domain, ENV.fetch('domain')
|
||||||
|
set :deploy_to, deploy_to
|
||||||
|
set :repository, 'https://github.com/betagouv/tps.git'
|
||||||
|
set :branch, ENV.fetch('branch')
|
||||||
|
set :forward_agent, true
|
||||||
|
set :user, 'ds'
|
||||||
set :shared_dirs, shared_dirs
|
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('domain')}, branch: #{ENV.fetch('branch')}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue