From fcf9608dc9e602d1822a02b014586dfe8fc675bb Mon Sep 17 00:00:00 2001 From: yan Date: Sun, 11 Aug 2013 15:05:55 +0800 Subject: [PATCH] Add sub-uri --- config.ru | 7 ++++++- config/additional_environment.rb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config.ru b/config.ru index 2a89752d..ca23714b 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,9 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) -run RedmineApp::Application + +#run RedmineApp::Application + +map ActionController::Base.config.relative_url_root || "/" do + run RedmineApp::Application +end diff --git a/config/additional_environment.rb b/config/additional_environment.rb index 2a317a39..6654da90 100644 --- a/config/additional_environment.rb +++ b/config/additional_environment.rb @@ -7,4 +7,4 @@ # config.log_level = :debug # ... # - +#config.relative_url_root = '/socialforge'