Mercurial > hg > soundsoftware-site
view .svn/pristine/99/99e2701a14c4f2125c8873be0b1ded74098d370b.svn-base @ 1613:90bed4e10cc8 deploy
Download file link
author | Chris Cannam |
---|---|
date | Wed, 30 Aug 2017 17:24:37 +0100 |
parents | 038ba2d95de8 |
children |
line wrap: on
line source
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require File.dirname(__FILE__) + '/../config/environment' class Rack::PathInfoRewriter def initialize(app) @app = app end def call(env) env.delete('SCRIPT_NAME') parts = env['REQUEST_URI'].split('?') env['PATH_INFO'] = parts[0] env['QUERY_STRING'] = parts[1].to_s @app.call(env) end end Rack::Handler::FastCGI.run Rack::PathInfoRewriter.new(RedmineApp::Application)