summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
authorVincent Giersch <vincent@giersch.fr>2013-01-29 16:22:45 +0000
committerVincent Giersch <vincent@giersch.fr>2013-01-29 16:22:45 +0000
commit706e01d97a7291adb719be57265e6d3728601a8f (patch)
tree77fdae186f83a2bfecb746ebb1527ddd83461f70 /config.ru
parent30bd6637e93196e55d7f06f4913e0e7fbdc57ac1 (diff)
downloadgitlab-ci-706e01d97a7291adb719be57265e6d3728601a8f.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 1f2c50e..4d15592 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 GitlabCi::Application
+
+map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
+ run GitlabCi::Application
+end