From 7b15111e8f2f202f5fffdbcf445517dd92d1e533 Mon Sep 17 00:00:00 2001 From: DocuSeal Date: Tue, 24 Oct 2023 13:36:50 +0300 Subject: [PATCH] use temp file for puma pid --- config/puma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index 7568bc79..ebafd96d 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -24,7 +24,7 @@ port ENV.fetch('PORT', 3000) environment ENV.fetch('RAILS_ENV', 'development') # Specifies the `pidfile` that Puma will use. -# pidfile ENV.fetch('PIDFILE', 'tmp/pids/server.pid') +pidfile ENV.fetch('PIDFILE', "#{Dir.tmpdir}/server.pid") # Specifies the number of `workers` to boot in clustered mode. # Workers are forked web server processes. If using threads and workers together