Deploy: use fetch
This commit is contained in:
parent
e63ba1b9cb
commit
a1d813aff4
2 changed files with 5 additions and 10 deletions
|
@ -10,8 +10,8 @@ def domains_from_env(env)
|
|||
end
|
||||
|
||||
task :deploy do
|
||||
domains = domains_from_env(ENV['STAGE'])
|
||||
branch = ENV['BRANCH'] || 'dev'
|
||||
domains = domains_from_env(ENV.fetch('STAGE'))
|
||||
branch = ENV.fetch('BRANCH')
|
||||
|
||||
domains.each do |domain|
|
||||
sh "mina deploy domain=#{domain} branch=#{branch} force_asset_precompile=true"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue