Branch value in log is now correct

This commit is contained in:
Mathieu Magnin 2017-05-31 17:24:16 +02:00
parent 46c0e04b0c
commit a7969e5507

View file

@ -15,7 +15,6 @@ raise "Bad to=#{+ENV['to']}" unless ["staging", "production"].include?(ENV['to']
raise "missing domain, run with 'rake deploy domain=37.187.154.237'" if ENV['domain'].nil?
print "Deploy to #{ENV['to']} environment branch #{branch}\n"
# set :domain, '5.135.190.60'
set :domain, ENV['domain']
@ -37,6 +36,8 @@ when "production"
appname = 'tps'
end
print "Deploy to #{ENV['to']} environment branch #{branch}\n"
set :rails_env, ENV["to"]
# For system-wide RVM install.