capistrano-3-rails-template
capistrano-3-rails-template copied to clipboard
compile_assets_locally tasks uses sudo
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.
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