From 1433331fb5a9e61cec64eb54b3ac8db3460c1067 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 24 Oct 2018 10:22:41 +0200 Subject: [PATCH] Deploy: branch base on BRANCH var --- lib/tasks/deploy.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/deploy.rake b/lib/tasks/deploy.rake index 6d02caf16..4cf488ea3 100644 --- a/lib/tasks/deploy.rake +++ b/lib/tasks/deploy.rake @@ -8,7 +8,7 @@ task :deploy do raise "STAGE #{STAGE} is unknown. It must be either dev or master" end - branch = ENV['STAGE'] + branch = ENV['BRANCH'] || 'dev' domains.each do |domain| sh "mina deploy domain=#{domain} branch=#{branch} force_asset_precompile=true"