puma config is a production thing

This commit is contained in:
Sam 2016-02-24 14:49:31 +11:00
parent 8322bcf0c3
commit d7ac056606

View file

@ -1,3 +1,5 @@
if ENV['RAILS_ENV']=='production'
# First, you need to change these below to your situation.
APP_ROOT = '/home/discourse/discourse'
num_workers = ENV["NUM_WEBS"].to_i > 0 ? ENV["NUM_WEBS"].to_i : 4
@ -13,3 +15,5 @@ pidfile "#{APP_ROOT}/tmp/pids/puma.pid"
state_path "#{APP_ROOT}/tmp/pids/puma.state"
daemonize true
preload_app!
end