Commit 576cb20a authored by Daniel Gerhardt's avatar Daniel Gerhardt

Fix support for running Redmine with path prefix

parent 5602cbd0
......@@ -2,3 +2,9 @@
require ::File.expand_path('../config/environment', __FILE__)
run RedmineApp::Application
use OmniAuth::Builder do
configure do |config|
config.path_prefix = RedmineApp::Application.routes.default_scope + '/auth'
end
end
......@@ -10,5 +10,10 @@ if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
exit 1
end
RedmineApp::Application.routes.default_scope = "/redmine"
# Initialize the Rails application
Rails.application.initialize!
ActionController::Base.relative_url_root = RedmineApp::Application.routes.default_scope
Redmine::Utils::relative_url_root = RedmineApp::Application.routes.default_scope
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment