This commit is contained in:
simon lehericey 2018-10-23 18:26:23 +02:00
parent 8316ab8e51
commit 07ecb2509b

View file

@ -1,8 +1,11 @@
task :deploy do
if ENV['STAGE_NAME'] == 'dev'
domains = ['web1.dev', 'web2.dev']
elsif ENV['STAGE_NAME'] == 'master'
domains = ['web1', 'web2']
domains = case ENV['STAGE_NAME']
when 'dev'
['web1.dev', 'web2.dev']
when 'master'
['web1', 'web2']
else
raise "STAGE_NAME #{STAGE_NAME} is unknown. It must be either dev or master"
end
branch = ENV['STAGE_NAME']