Thursday, April 28, 2011

sudo: no tty present and no askpass program specified

When trying to deploy to a new staging server, I get the following
error:

sudo: no tty present and no askpass program specified

Solution:

Add the line: default_run_options[:pty] = true
in your deploy.rb