From 19386b35efc589c203582398a81203d0bbb22ea9 Mon Sep 17 00:00:00 2001 From: Edgars Jekabsons Date: Mon, 15 Sep 2014 09:45:11 +0300 Subject: [PATCH] Modified deploy strategy to use a deploy config of the branch you are actually deploying --- app.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app.rb b/app.rb index dbd1e7a..dfc0f16 100644 --- a/app.rb +++ b/app.rb @@ -15,12 +15,7 @@ cmd = "cd ~/apps/bridge;" - if %w(feature production).include?(params[:stage]) - cmd += "git checkout development; git pull origin development" - else - # 2.89 is the latest tag pointing to 1.9.3-p327 - cmd += "git checkout 2.89" - end + cmd += "git checkout #{params[:branch]}; git pull origin #{params[:branch]}" cmd = IO.popen("#{cmd}; #{cap} #{params[:stage]} deploy tag=#{params[:branch]}") log = cmd.readlines