mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add clean support for running Discourse in a subfolder
To setup set DISCOURSE_RELATIVE_URL_ROOT to the folder you wish
This commit is contained in:
@@ -156,6 +156,10 @@ module Discourse
|
||||
require 'auth'
|
||||
Discourse.activate_plugins! unless Rails.env.test? and ENV['LOAD_PLUGINS'] != "1"
|
||||
|
||||
if GlobalSetting.relative_url_root.present?
|
||||
config.relative_url_root = GlobalSetting.relative_url_root
|
||||
end
|
||||
|
||||
config.after_initialize do
|
||||
# So open id logs somewhere sane
|
||||
OpenID::Util.logger = Rails.logger
|
||||
|
||||
Reference in New Issue
Block a user