Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile_assets_locally tasks uses sudo #32

Open
duarme opened this issue Oct 17, 2014 · 1 comment
Open

compile_assets_locally tasks uses sudo #32

duarme opened this issue Oct 17, 2014 · 1 comment

Comments

@duarme
Copy link

duarme commented Oct 17, 2014

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
Copy link
Author

duarme commented Oct 17, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant