Extract the deploy_ha task in a dedicated file
This commit is contained in:
parent
fa2afe6820
commit
e2b09df049
2 changed files with 6 additions and 7 deletions
7
Rakefile
7
Rakefile
|
@ -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
6
lib/tasks/deploy_ha.rake
Normal 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
|
Loading…
Reference in a new issue