DEV: Allow changing APP_ROOT for puma via ENV variable (#15744)

This commit is contained in:
1resu 2022-06-17 17:58:04 +02:00 committed by GitHub
parent 12980418ae
commit 1f85eea64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.