wblog/config/puma_en.rb

16 lines
469 B
Ruby
Raw Permalink Normal View History

2018-01-21 03:07:07 +08:00
if ENV['RAILS_ENV'] == 'production'
app_root = '/data/www/wblog_en/shared'
pidfile "#{app_root}/tmp/pids/puma.pid"
state_path "#{app_root}/tmp/pids/puma.state"
bind "unix://#{app_root}/tmp/sockets/puma.sock"
activate_control_app "unix://#{app_root}/tmp/sockets/pumactl.sock"
daemonize true
workers 1
threads 4, 8
2019-04-23 11:00:55 +08:00
prune_bundler
2018-01-21 03:07:07 +08:00
stdout_redirect "#{app_root}/log/puma_access.log", "#{app_root}/log/puma_error.log", true
else
plugin :tmp_restart
end