FIX: Check env for multisite config path even if config file exists (#14536)

FIX: Check env for multisite config path even if config file exists (#14536)

… so that it can be overridden for rake tasks without changing the config file.

diff --git a/config/application.rb b/config/application.rb
index cdd676e..ce62faa 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -99,7 +99,8 @@ module Discourse
     config.skip_multisite_middleware = true
     config.skip_rails_failover_active_record_middleware = true
 
-    config.multisite_config_path = File.absolute_path(GlobalSetting.multisite_config_path, Rails.root)
+    multisite_config_path = ENV['DISCOURSE_MULTISITE_CONFIG_PATH'] || GlobalSetting.multisite_config_path
+    config.multisite_config_path = File.absolute_path(multisite_config_path, Rails.root)
 
     # Disable so this is only run manually
     # we may want to change this later on

GitHub sha: 55dd9309e4553109e3b89d1fa7f912cac779baee

This commit appears in #14536 which was approved by eviltrout. It was merged by danielwaterworth.