demarches-normaliennes/lib/tasks/deploy.rake

28 lines
619 B
Ruby
Raw Normal View History

2018-09-20 11:20:57 +02:00
task :deploy do
if ENV['STAGE_NAME'] == 'dev'
domains = ['web1.dev', 'web2.dev']
elsif ENV['STAGE_NAME'] == 'master'
domains = ['web1', 'web2']
end
branch = ENV['STAGE_NAME']
domains.each do |domain|
sh "mina deploy domain=#{domain} branch=#{branch} force_asset_precompile=true"
2018-09-03 18:36:09 +02:00
end
end
task :setup do
domains = ['web1', 'web2']
domains.each do |domain|
sh "mina setup domain=#{domain} force_asset_precompile=true"
end
end
task :setup_dev do
domains = ['web1.dev', 'web2.dev']
domains.each do |domain|
sh "mina setup domain=#{domain} force_asset_precompile=true"
end
end