mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
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.
This commit is contained in:
parent
bdd2b5bb9c
commit
55dd9309e4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue