Fixed puma config for new Puma versions

This commit is contained in:
2025-07-26 11:32:32 -04:00
parent bc70fb8dd0
commit 49d1276031

View File

@ -1,14 +1,9 @@
app_dir = File.expand_path("..", __dir__) app_dir = File.expand_path("..", __dir__)
log_dir = File.join(app_dir, "log")
pid_dir = "/var/run/game-data" # or use app_dir + '/tmp/pids' if not using system-wide PID dir
directory app_dir directory app_dir
pidfile File.join(pid_dir, "puma.pid")
stdout_redirect File.join(log_dir, "puma.log"), File.join(log_dir, "puma.err.log"), true
environment 'production' environment 'production'
bind 'tcp://0.0.0.0:9292' bind 'tcp://0.0.0.0:9292'
workers 2 workers 2
threads 1, 5 threads 1, 5
daemonize true