From 933732676b1bf66f86f624472b1d222a6c995b0b Mon Sep 17 00:00:00 2001 From: Wojciech Kocjan Date: Wed, 10 Apr 2013 13:14:04 +0200 Subject: [PATCH] Allow running discourse with prefix with passenger without requiring a symlink --- config.ru | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.ru b/config.ru index 6b0326b323e..c74954f4f4b 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,6 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) -run Discourse::Application +map ActionController::Base.config.try(:relative_url_root) || "/" do + run Discourse::Application +end +