changed deploy.rb to set :deploy_via, :remote_cache and default_run_options[:pty] = true
set :ssh_options, { :forward_agent => true }