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:
Akira 2017-10-03 23:40:16 +09:00 committed by Eugen Rochko
parent 79ba928cd5
commit b197f69606
1 changed files with 1 additions and 0 deletions

View File

@ -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