From dd07a863cb8b242b5c293961a332c31b35876b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 16 Nov 2019 21:14:41 +0100 Subject: [PATCH] Allow restarting puma with `rails restart` So now the way to restart the application does not depend on whether we use puma or passenger. What this plugin actually does is restarting puma when we touch the `tmp/restart.txt` file, which is what `rails restart` does. --- config/puma.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/puma.rb b/config/puma.rb index a4b30fa9d..9be47da0d 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -20,6 +20,7 @@ workers 2 preload_app! restart_command "bundle exec --keep-file-descriptors puma" +plugin :tmp_restart on_restart do puts "Refreshing Gemfile"