Deploy: use domains_from_env for setup

This commit is contained in:
simon lehericey 2018-10-24 10:40:14 +02:00
parent 47697c5881
commit e63ba1b9cb

View file

@ -19,14 +19,8 @@ task :deploy do
end
task :setup do
domains = ['web1', 'web2']
domains.each do |domain|
sh "mina setup domain=#{domain} force_asset_precompile=true"
end
end
domains = domains_from_env(ENV['STAGE'])
task :setup_dev do
domains = ['web1.dev', 'web2.dev']
domains.each do |domain|
sh "mina setup domain=#{domain} force_asset_precompile=true"
end