Merge pull request #108 from sgmap/remove_tps_v2_in_deploy
Remove tps_v2 reference in deploy script
This commit is contained in:
commit
ca2d7038d4
1 changed files with 1 additions and 14 deletions
|
@ -11,7 +11,7 @@ require 'mina/rbenv' # for rbenv support. (http://rbenv.org)
|
||||||
# branch - Branch name to deploy. (needed by mina/git)
|
# branch - Branch name to deploy. (needed by mina/git)
|
||||||
|
|
||||||
ENV['to'] ||= "staging"
|
ENV['to'] ||= "staging"
|
||||||
raise "Bad to=#{+ENV['to']}" unless ["staging", "production", "tps_v2"].include?(ENV['to'])
|
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?
|
raise "missing domain, run with 'rake deploy domain=37.187.154.237'" if ENV['domain'].nil?
|
||||||
|
|
||||||
|
@ -42,23 +42,10 @@ elsif ENV["to"] == "production"
|
||||||
set :deploy_to, '/var/www/tps'
|
set :deploy_to, '/var/www/tps'
|
||||||
set :user, 'tps' # Username in the server to SSH to.
|
set :user, 'tps' # Username in the server to SSH to.
|
||||||
appname = 'tps'
|
appname = 'tps'
|
||||||
elsif ENV["to"] == "tps_v2"
|
|
||||||
if ENV['branch'].nil?
|
|
||||||
set :branch, 'staging_v2'
|
|
||||||
else
|
|
||||||
set :branch, ENV['branch']
|
|
||||||
end
|
|
||||||
set :deploy_to, '/var/www/tps_v2'
|
|
||||||
set :user, 'tps_v2' # Username in the server to SSH to.
|
|
||||||
appname = 'tps_v2'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
set :rails_env, ENV["to"]
|
set :rails_env, ENV["to"]
|
||||||
|
|
||||||
if ENV["to"] == "tps_v2"
|
|
||||||
set :rails_env, "staging"
|
|
||||||
end
|
|
||||||
|
|
||||||
# For system-wide RVM install.
|
# For system-wide RVM install.
|
||||||
# set :rvm_path, '/usr/local/rvm/bin/rvm'
|
# set :rvm_path, '/usr/local/rvm/bin/rvm'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue