Commit 38102ebd authored by Sarah Mei's avatar Sarah Mei

Revert "Mount application on proper location" - changes cause app to fail when...

Revert "Mount application on proper location" - changes cause app to fail when there's no trailing / on the pod_url.

This reverts commit 18827b40.
parent b865c20b
......@@ -6,15 +6,11 @@
require ::File.expand_path('../config/environment', __FILE__)
require ::File.expand_path('../lib/chrome_frame', __FILE__)
require 'lib/host-meta'
#use Rack::FiberPool
require ::File.expand_path('../lib/host-meta', __FILE__)
map "/.well-known" do
run HostMeta::File.new( "public/well-known")
end
map AppConfig[:pod_uri].path do
use Rack::ChromeFrame, :minimum => 8
use Rack::ShowExceptions
run Diaspora::Application
end
use Rack::ChromeFrame, :minimum => 8
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 }
else
p = nil
end
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