Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down