Closed robot-den closed 2 weeks ago
I fixed it by changing some "deploy" user privileges:
login as root, call visudo
and add line to the end of file:
deploy ALL=(ALL) NOPASSWD: /usr/bin/loginctl
it will allow the "deploy" user to call sudo loginctl without password.
Hi! My question is not an issue, but an advice seeking. I didn't find an answer in the other issues. I'm trying to set a deploy using puma (6.4.3) and capistrano3-puma (6.0.0.beta.1).
I'm using separate user, that was made to deploy application. It's named "deploy" and is set in capistrano configs. When I run
cap production puma:install
I get an error at thesudo loginctl enable-linger
step:I understand that this happens because at this step the sudo password is asked. But I don't understand how other devs setup deployment with separate user like in my case. Do they deploy using the root user or adjust something in privileges?
What can I do to finish installation and deploy under "deploy" user?