Fix deploy options. Refs #2261

This commit is contained in:
Pavel Chipiga 2011-12-06 16:52:31 +02:00
parent 04a17cb691
commit 18b9f7c51e
2 changed files with 2 additions and 1 deletions

View File

@ -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}"

View File

@ -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"