From b197f696069626d81b0dbb2774c78e689853d006 Mon Sep 17 00:00:00 2001 From: Akira Date: Tue, 3 Oct 2017 23:40:16 +0900 Subject: [PATCH] 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. --- Running-Mastodon/Production-guide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Running-Mastodon/Production-guide.md b/Running-Mastodon/Production-guide.md index bb6fb0be..4b174f25 100644 --- a/Running-Mastodon/Production-guide.md +++ b/Running-Mastodon/Production-guide.md @@ -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