Add production puma config to repo

This commit is contained in:
TheNeedful-DO 2023-12-04 16:21:56 +00:00
parent 748117f28c
commit 3d59cba509

32
config/puma/production.rb Normal file
View File

@ -0,0 +1,32 @@
#!/usr/bin/env puma
environment 'production'
directory '/home/thirteen/srv/thirteen-tien-len_production/current'
rackup "/home/thirteen/srv/thirteen-tien-len_production/current/config.ru"
tag ''
pidfile "/home/thirteen/srv/thirteen-tien-len_production/shared/tmp/pids/puma.pid"
state_path "/home/thirteen/srv/thirteen-tien-len_production/shared/tmp/pids/puma.state"
stdout_redirect '/home/thirteen/srv/thirteen-tien-len_production/shared/log/puma_access.log', '/home/thirteen/srv/thirteen-tien-len_production/shared/log/puma_error.log', true
threads 0,5
bind 'unix:///home/thirteen/srv/thirteen-tien-len_production/shared/tmp/sockets/puma.sock'
workers 0
prune_bundler
on_restart do
puts 'Refreshing Gemfile'
ENV["BUNDLE_GEMFILE"] = ""
end