Added config/puma.rb for production deployment
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-07-26 11:16:07 -04:00
parent 0231ebad2d
commit bc70fb8dd0

14
config/puma.rb Normal file
View File

@ -0,0 +1,14 @@
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
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'
bind 'tcp://0.0.0.0:9292'
workers 2
threads 1, 5
daemonize true