Browse files

Added RAILS_RELATIVE_URL_ROOT support

  • Loading branch information...
1 parent 30bd663 commit 706e01d97a7291adb719be57265e6d3728601a8f @gierschv gierschv committed Jan 29, 2013
Showing with 7 additions and 1 deletion.
  1. +4 −1 config.ru
  2. +3 −0 config/unicorn.rb
View
5 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
View
3 config/unicorn.rb
@@ -1,3 +1,6 @@
+# uncomment and customize to run in non-root path
+# ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab-ci"
+
app_dir = "/home/gitlab_ci/gitlab-ci/"
worker_processes 2
working_directory app_dir

0 comments on commit 706e01d

Please sign in to comment.