Skip to content

Commit 9337326

Browse files
committed
Allow running discourse with prefix with passenger without requiring a symlink
1 parent 33e3ad1 commit 9337326

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config.ru

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# This file is used by Rack-based servers to start the application.
22
require ::File.expand_path('../config/environment', __FILE__)
3-
run Discourse::Application
3+
map ActionController::Base.config.try(:relative_url_root) || "/" do
4+
run Discourse::Application
5+
end
6+

0 commit comments

Comments
 (0)