capistrano-3-rails-template icon indicating copy to clipboard operation
capistrano-3-rails-template copied to clipboard

compile_assets_locally tasks uses sudo

Open duarme opened this issue 10 years ago • 1 comments

The Capistrano 3 docs, on this page states that

"we need to be able to work, ideally without sudo (none of the default Capistrano recipes expect sudo to be available), or for your custom recipes, you will need to have configured passwordless sudo."

But the new compile_assets_localy.cap uses sudo on line 11.

This results in a sudo: no tty present and no askpass program specified error.

duarme avatar Oct 17 '14 14:10 duarme

Sorry, my bad, solved it adding that chown comand to sudoers:

#/etc/sudoers

Cmnd_Alias CHMOD         = /bin/chmod

# Passwordless sudo for deployer
deployer  ALL=(ALL) NOPASSWD: CHMOD

duarme avatar Oct 17 '14 14:10 duarme