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

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
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -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

config/initializers/sub_uri.rb

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line

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