02 September 2015

If deploying with Capistrano and get this error on some command:

sudo: no tty present and no askpass program specified

Solution:

Modify sudoer file and add NOPASSWD for that command:

visudo -f /eetc/sudoers.d/someuser

someuser ALL=(ALL) NOPASSWD:/somecommand