From e2b09df049522c4e240e614950389dd9025954f4 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Thu, 20 Sep 2018 11:20:23 +0200 Subject: [PATCH] Extract the deploy_ha task in a dedicated file --- Rakefile | 7 ------- lib/tasks/deploy_ha.rake | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 lib/tasks/deploy_ha.rake diff --git a/Rakefile b/Rakefile index f6261c343..f7a26ddaf 100644 --- a/Rakefile +++ b/Rakefile @@ -4,10 +4,3 @@ require File.expand_path('config/application', __dir__) 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 diff --git a/lib/tasks/deploy_ha.rake b/lib/tasks/deploy_ha.rake new file mode 100644 index 000000000..492b4742b --- /dev/null +++ b/lib/tasks/deploy_ha.rake @@ -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