2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-03 08:39:21 +08:00
discourse/config.ru
Sam f52111f787 FEATURE: allow plugins to easily detect if running in Rack
Usage: Discourse.running_in_rack? to tell if rack was booted
2017-11-16 08:39:29 +11:00

8 lines
273 B
Ruby

# This file is used by Rack-based servers to start the application.
ENV["DISCOURSE_RUNNING_IN_RACK"] = "1"
require ::File.expand_path('../config/environment', __FILE__)
map ActionController::Base.config.try(:relative_url_root) || "/" do
run Discourse::Application
end