From 18b9f7c51efac0b9dd1e9cc323c0b1e540ac6025 Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Tue, 6 Dec 2011 16:52:31 +0200 Subject: [PATCH] Fix deploy options. Refs #2261 --- config/deploy.rb | 1 + lib/recipes/nginx.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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"