-
Notifications
You must be signed in to change notification settings - Fork 6
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
What is the expected use case with sudo? #6
Comments
Hi, unfortunately I don't have a clear answer for you. You've probably stumbled on "official" capistrano docs - authorization section where they are not really clear about this too. I have let go of this and just give my As for the better workflow, I've never pursued this path but I'd imagine it might be something like this:
From what I see it's the "application configuration" that is in the grey zone. Capistrano would be used for just a couple tasks like: git pulling new app updates, migrations, asset compilation and reseting a server. Like I said, this is just theoretical talking from my side, never tried this. |
No worries! I did read those docs, but I appreciate you linking them because of your brilliant paraphrase. :-) I do pretty lightweight projects, which is why I'd like to avoid a separate provisioning tool. I'm going to just do NOPASSWD:ALL until I learn enough about Capistrano to do a setup task with an interactive sudo password prompt. Ideally, you'd input your sudo password during Thanks for your input; it definitely helps to hear that other people are glossing over it in the same way. I'm still open to any further suggestions, though. |
I just picked up safe-depoy-to, but it - as with many other gems - runs into problems with use of sudo through cap. What's the expected way to deal with this?
My current solution is to add the commands to passwordless sudo in /etc/sudoers, but I'm basically just running the deploy over and over again and adding each command as it fails. Which is obviously no easier than just creating the directories myself. I'm also not super comfy with the security of passwordless sudo in general.
Can someone provide a better workflow for using capistrano-safe-deploy-to or capistrano sudo use in general?
The text was updated successfully, but these errors were encountered: