Fix deploy options. Refs #2261
This commit is contained in:
parent
04a17cb691
commit
18b9f7c51e
|
@ -13,6 +13,7 @@ require 'capistrano/ext/multistage'
|
||||||
|
|
||||||
# main details
|
# main details
|
||||||
ssh_options[:forward_agent] = true
|
ssh_options[:forward_agent] = true
|
||||||
|
default_run_options[:pty] = true
|
||||||
|
|
||||||
set :application, "rosa_build"
|
set :application, "rosa_build"
|
||||||
set :deploy_to, "/srv/#{application}"
|
set :deploy_to, "/srv/#{application}"
|
||||||
|
|
|
@ -44,7 +44,7 @@ server {
|
||||||
# puts config
|
# puts config
|
||||||
puts "Write nginx config to #{nginx_config_path}"
|
puts "Write nginx config to #{nginx_config_path}"
|
||||||
put config, '/tmp/nginx.conf'
|
put config, '/tmp/nginx.conf'
|
||||||
sudo "mv /tmp/nginx.conf #{nginx_config_path}", :pty => true
|
sudo "mv /tmp/nginx.conf #{nginx_config_path}"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Start nginx web server"
|
desc "Start nginx web server"
|
||||||
|
|
Loading…
Reference in New Issue