mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
puma config is a production thing
This commit is contained in:
parent
8322bcf0c3
commit
d7ac056606
1 changed files with 17 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue