ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

relative_url_root.diff

Holger Just, 2012-01-29 06:53 pm

Download (475 Bytes)

 
b/config.ru
2 2

  
3 3
use Rails::Rack::LogTailer
4 4
use Rails::Rack::Static
5
run ActionController::Dispatcher.new
5

  
6
class ChiliProject::Dispatcher < ActionController::Dispatcher
7
  def call(env)
8
    ActionController::Base.relative_url_root = env['SCRIPT_NAME']
9
    super
10
  end
11
end
12

  
13
run ChiliProject::Dispatcher.new