mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 01:49:25 +08:00
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'
|
if ENV['RAILS_ENV'] == 'production'
|
||||||
|
|
||||||
# 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 = ENV["APP_ROOT"] || '/home/discourse/discourse'
|
||||||
num_workers = ENV["NUM_WEBS"].to_i > 0 ? ENV["NUM_WEBS"].to_i : 4
|
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.
|
# Second, you can choose how many threads that you are going to run at same time.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user