2013-02-05 14:16:51 -05:00
|
|
|
# This file is used by Rack-based servers to start the application.
|
2017-11-16 08:39:11 +11:00
|
|
|
ENV["DISCOURSE_RUNNING_IN_RACK"] = "1"
|
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
require ::File.expand_path('../config/environment', __FILE__)
|
2017-11-16 08:39:11 +11:00
|
|
|
|
2013-04-10 13:14:04 +02:00
|
|
|
map ActionController::Base.config.try(:relative_url_root) || "/" do
|
|
|
|
|
run Discourse::Application
|
|
|
|
|
end
|