summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
authorChris Frohoff <chris@frohoff.org>2012-12-28 18:11:28 +0000
committerChris Frohoff <chris@frohoff.org>2012-12-28 18:11:28 +0000
commit21e55ca318bb829399c85b10e678b596d6fd414e (patch)
treed3029235bcc15ef06a9489df40b79b280be1397f /config.ru
parente9394c48ca7aacd9d151519c1da51d18a21b351b (diff)
downloadgitlab-ce-21e55ca318bb829399c85b10e678b596d6fd414e.tar.gz
added RAILS_RELATIVE_URL_ROOT support
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.ru b/config.ru
index 5ef2a0289fe..dfd2d862237 100644
--- a/config.ru
+++ b/config.ru
@@ -1,4 +1,7 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-run Gitlab::Application
+
+map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
+ run Gitlab::Application
+end