mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Update puma.rb
This commit is contained in:
parent
f784a188c6
commit
ee5f35d4e9
1 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
||||||
# First, you need to change these below to your situation.
|
# First, you need to change these below to your situation.
|
||||||
APP_ROOT = '/home/discourse/discourse'
|
APP_ROOT = '/home/discourse/discourse'
|
||||||
|
num_worker=ENV["NUM_WEBS"].to_i > 0 ? ENV["NUM_WEBS"].to_i : 4
|
||||||
|
|
||||||
# Second, you can choose how many threads that you are going to run at same time.
|
# Second, you can choose how many threads that you are going to run at same time.
|
||||||
workers 4
|
workers "#{num_workers}"
|
||||||
threads 8,32
|
threads 8,32
|
||||||
|
|
||||||
# Unless you know what you are changing, do not change them.
|
# Unless you know what you are changing, do not change them.
|
||||||
|
@ -11,4 +12,4 @@ stdout_redirect "#{APP_ROOT}/log/puma.log","#{APP_ROOT}/log/puma.err.log"
|
||||||
pidfile "#{APP_ROOT}/tmp/pids/puma.pid"
|
pidfile "#{APP_ROOT}/tmp/pids/puma.pid"
|
||||||
state_path "#{APP_ROOT}/tmp/pids/puma.state"
|
state_path "#{APP_ROOT}/tmp/pids/puma.state"
|
||||||
daemonize true
|
daemonize true
|
||||||
preload_app!
|
preload_app!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue