Skip to content

Commit

Permalink
Making the puma pidfile configurable for Kubernetes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrama committed Dec 10, 2024
1 parent 274c5d4 commit 1fc304b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
bind "tcp://#{ENV["BIND_IP"]}:#{ENV["BIND_PORT"]}"
end

pidfile File.expand_path("../../log/search-puma.pid", __FILE__)
pidfile ENV.fetch("PUMA_PIDFILE", File.expand_path("../../log/search-puma.pid", __FILE__))

# on_restart do
# Code to run before doing a restart. This code should
Expand Down

0 comments on commit 1fc304b

Please sign in to comment.