Extract the deploy_ha task in a dedicated file

This commit is contained in:
gregoirenovel 2018-09-20 11:20:23 +02:00
parent fa2afe6820
commit e2b09df049
2 changed files with 6 additions and 7 deletions

View file

@ -4,10 +4,3 @@
require File.expand_path('config/application', __dir__) require File.expand_path('config/application', __dir__)
Rails.application.load_tasks Rails.application.load_tasks
task :deploy_ha do
domains = %w(149.202.72.152 149.202.198.6)
domains.each do |domain|
sh "mina deploy domain=#{domain}"
end
end

6
lib/tasks/deploy_ha.rake Normal file
View file

@ -0,0 +1,6 @@
task :deploy_ha do
domains = %w(149.202.72.152 149.202.198.6)
domains.each do |domain|
sh "mina deploy domain=#{domain}"
end
end