mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
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:
commit
5c4a5a9134
1 changed files with 4 additions and 1 deletions
|
@ -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__)
|
||||||
|
map ActionController::Base.config.try(:relative_url_root) || "/" do
|
||||||
run Discourse::Application
|
run Discourse::Application
|
||||||
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue