DEV: Allow changing APP_ROOT for puma via ENV variable (#15744)
This commit is contained in:
parent
12980418ae
commit
1f85eea64c
|
@ -3,7 +3,7 @@
|
|||
if ENV['RAILS_ENV'] == 'production'
|
||||
|
||||
# First, you need to change these below to your situation.
|
||||
APP_ROOT = '/home/discourse/discourse'
|
||||
APP_ROOT = ENV["APP_ROOT"] || '/home/discourse/discourse'
|
||||
num_workers = 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.
|
||||
|
|
Loading…
Reference in New Issue