Commit 18827b40 authored by Alec Leamas's avatar Alec Leamas
Browse files

Mount application on proper location

Uses mapping in to respect sub-uri settings in pod_uri.
parent 685b8092
......@@ -7,5 +7,9 @@
require ::File.expand_path('../config/environment', __FILE__)
#use Rack::FiberPool
require ::File.expand_path('../lib/chrome_frame', __FILE__)
use Rack::ChromeFrame, :minimum => 8
run Diaspora::Application
map AppConfig[:pod_uri].path do
use Rack::ChromeFrame, :minimum => 8
use Rack::ShowExceptions
run Diaspora::Application
p = AppConfig[ :pod_uri].path
if p and not p.empty? and p != "/"
Rails.application.routes.default_url_options = { :script_name => p }
p = nil
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