Add rake task to run after party with mina

This commit is contained in:
Mathieu Magnin 2018-12-04 14:42:52 +01:00
parent bd519835cd
commit 55525af060
2 changed files with 16 additions and 2 deletions

View file

@ -25,3 +25,10 @@ task :deploy do
sh "mina deploy domain=#{domain} branch=#{branch} force_asset_precompile=true"
end
end
task :post_deploy do
domains = domains_for_stage(ENV.fetch('STAGE'))
branch = ENV.fetch('BRANCH')
sh "mina post_deploy domain=#{domains.first} branch=#{branch}"
end