From 01d680cc4eceb49cda283bd133fbf1021b03e616 Mon Sep 17 00:00:00 2001 From: Tanguy PATTE Date: Tue, 1 Sep 2015 14:58:55 +0200 Subject: [PATCH] add deploy task --- Rakefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Rakefile b/Rakefile index ba6b733dd..47d01467e 100644 --- a/Rakefile +++ b/Rakefile @@ -4,3 +4,18 @@ require File.expand_path('../config/application', __FILE__) Rails.application.load_tasks + +task :deploy do + domains = %w(37.187.154.237 37.187.249.111) + domains.each do |domain| + sh "mina deploy domain=#{domain}" + end +end + +task :deploy_test do + domains = %w(test_sgmap) + branch = 'master' + domains.each do |domain| + sh "mina deploy domain=#{domain} branch=#{branch}" + end +end