Added config/puma.rb for production deployment
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
14
config/puma.rb
Normal file
14
config/puma.rb
Normal 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
|
Reference in New Issue
Block a user