Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Frohoff <chris@frohoff.org>2012-12-28 22:11:28 +0400
committerChris Frohoff <chris@frohoff.org>2012-12-28 22:11:28 +0400
commit21e55ca318bb829399c85b10e678b596d6fd414e (patch)
treed3029235bcc15ef06a9489df40b79b280be1397f /config.ru
parente9394c48ca7aacd9d151519c1da51d18a21b351b (diff)
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