seuros / capistrano-puma

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

Job type reload is not applicable for unit #332

Closed kirqe closed 3 years ago

kirqe commented 3 years ago

Hey there. Capistrano-puma used to do /bin/systemctl RESTART puma_app_production at the end of cap production deploy I did bundle updated aaand...

now it does reload instead of restart which leads to Failed to reload puma_app_production.service: Job type reload is not applicable for unit puma_app_production.service.

seuros commented 3 years ago

Did you regenerate the systemd file ?

Reloading allows zero downtime deployment

kirqe commented 3 years ago

@seuros I have tried systemctl daemon-reload

edit cap production puma:reload alone works fine though

edit1: I removed after :finishing, :restart from namespace :deploy of deploy.rb and it started working with no errors. And there should also be the ExecReload line in your systemd unit file.