add ExecReload to reload puma. (#406)
* add ExecReload to reload puma. This enables puma to reload changes without restarting process. * fix path for command `kill` * fix to bash. * change to /bin/kill * change from hot restart to phased restart.
This commit is contained in:
parent
79ba928cd5
commit
b197f69606
|
@ -456,6 +456,7 @@ WorkingDirectory=/home/mastodon/live
|
|||
Environment="RAILS_ENV=production"
|
||||
Environment="PORT=3000"
|
||||
ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb
|
||||
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||||
TimeoutSec=15
|
||||
Restart=always
|
||||
|
||||
|
|
Loading…
Reference in New Issue