From 1f85eea64cb0797917d2a2b051a6a9ab3d7b1fe8 Mon Sep 17 00:00:00 2001 From: 1resu Date: Fri, 17 Jun 2022 17:58:04 +0200 Subject: [PATCH] DEV: Allow changing APP_ROOT for puma via ENV variable (#15744) --- config/puma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index 12c9886df03..0fea9a24873 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -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.