diff --git a/config/deploy.rb b/config/deploy.rb index 53ec0aebf..8c764720b 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -13,6 +13,7 @@ require 'capistrano/ext/multistage' # main details ssh_options[:forward_agent] = true +default_run_options[:pty] = true set :application, "rosa_build" set :deploy_to, "/srv/#{application}" diff --git a/lib/recipes/nginx.rb b/lib/recipes/nginx.rb index 0ff8d568d..a7ce0b4af 100644 --- a/lib/recipes/nginx.rb +++ b/lib/recipes/nginx.rb @@ -44,7 +44,7 @@ server { # puts config puts "Write nginx config to #{nginx_config_path}" put config, '/tmp/nginx.conf' - sudo "mv /tmp/nginx.conf #{nginx_config_path}", :pty => true + sudo "mv /tmp/nginx.conf #{nginx_config_path}" end desc "Start nginx web server"