mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 15:52:45 +08:00
Allow running discourse with prefix with passenger without requiring a symlink
This commit is contained in:
parent
33e3ad1603
commit
933732676b
|
@ -1,3 +1,6 @@
|
||||||
# This file is used by Rack-based servers to start the application.
|
# This file is used by Rack-based servers to start the application.
|
||||||
require ::File.expand_path('../config/environment', __FILE__)
|
require ::File.expand_path('../config/environment', __FILE__)
|
||||||
run Discourse::Application
|
map ActionController::Base.config.try(:relative_url_root) || "/" do
|
||||||
|
run Discourse::Application
|
||||||
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user