OSDN Git Service

Updated at the request of @f0k
authorThomas Misilo <misilot@fit.edu>
Sat, 28 Sep 2013 11:40:48 +0000 (07:40 -0400)
committerThomas Misilo <misilot@fit.edu>
Sat, 28 Sep 2013 11:40:48 +0000 (07:40 -0400)
config/unicorn.rb.example

index 502727f..e4e1342 100644 (file)
@@ -8,7 +8,13 @@
 # See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
 # documentation.
 
-# Uncomment and customize the next line to run in a non-root path
+# Uncomment and customize the last line to run in a non-root path
+# WARNING: This feature is known to work, but unsupported
+# Note that three settings need to be changed for this to work.
+# 1) In your application.rb file: config.relative_url_root = "/gitlab"
+# 2) In your gitlab.yml file: relative_url_root: /gitlab
+# 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
+#
 # ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
 
 # Use at least one worker per core if you're on a dedicated server,