mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Locate the Puma config file.
This commit is contained in:
14
config/puma.rb
Normal file
14
config/puma.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
# First, you need to change these below to your situation.
|
||||
APP_ROOT = '/home/discourse/discourse'
|
||||
|
||||
# Second, you can choose how many threads that you are going to run at same time.
|
||||
workers 4
|
||||
threads 8,32
|
||||
|
||||
# Unless you know what you are changing, do not change them.
|
||||
bind "unix://#{APP_ROOT}/tmp/sockets/puma.sock"
|
||||
stdout_redirect "#{APP_ROOT}/log/puma.log","#{APP_ROOT}/log/puma.err.log"
|
||||
pidfile "#{APP_ROOT}/tmp/pids/puma.pid"
|
||||
state_path "#{APP_ROOT}/tmp/pids/puma.state"
|
||||
daemonize true
|
||||
preload_app!
|
||||
Reference in New Issue
Block a user