seuros / capistrano-puma

Puma integration for Capistrano
https://github.com/seuros/capistrano-puma
MIT License
615 stars 299 forks source link

Systemd config requires sudo #327

Closed heaven closed 3 years ago

heaven commented 3 years ago

This should work the same way as with capistrano-sidekiq and install the config to $HOME/.config/systemd.

I don't see much sense in creating a separate deploy user and adding it to the sudoers.

heaven commented 3 years ago

My bad, I've just found puma_systemctl_user.

randall-coding commented 2 years ago

To elaborate for anyone confused by this, I solved this issue by adding this line to deploy.rb

set :puma_systemctl_user, fetch(:user)