Skip to content
This repository
Browse code

Added RAILS_RELATIVE_URL_ROOT support

  • Loading branch information...
commit 706e01d97a7291adb719be57265e6d3728601a8f 1 parent 30bd663
Vincent Giersch authored January 29, 2013
5  config.ru
... ...
@@ -1,4 +1,7 @@
1 1
 # This file is used by Rack-based servers to start the application.
2 2
 
3 3
 require ::File.expand_path('../config/environment',  __FILE__)
4  
-run GitlabCi::Application
  4
+
  5
+map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
  6
+  run GitlabCi::Application
  7
+end
3  config/unicorn.rb
... ...
@@ -1,3 +1,6 @@
  1
+# uncomment and customize to run in non-root path
  2
+# ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab-ci"
  3
+
1 4
 app_dir = "/home/gitlab_ci/gitlab-ci/"
2 5
 worker_processes 2
3 6
 working_directory app_dir

0 notes on commit 706e01d

Please sign in to comment.
Something went wrong with that request. Please try again.