Add production puma config to repo
This commit is contained in:
parent
8eaeb04afa
commit
d1f1fbbfc2
32
config/puma/production.rb
Normal file
32
config/puma/production.rb
Normal 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
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user