Merge pull request #687 from wojciechka/config_ru_prefix

Allow running discourse with prefix with passenger without requiring a symlink
This commit is contained in:
Sam 2013-04-10 21:17:23 -07:00
commit 5c4a5a9134

View file

@ -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