Commit 6c8444f22e43de2f0166a6d7f98c7d9404d90ba2

Authored by Jacob Vosmaer
2 parents 4deb4575 e99701fb

Merge pull request #4902 from misilot/missing-config-unicorn.rb

Add hints for relative URL installation
config/application.rb
... ... @@ -70,11 +70,11 @@ module Gitlab
70 70 config.assets.version = '1.0'
71 71  
72 72 # Uncomment and customize the last line to run in a non-root path
73   - # WARNING: This feature is no longer supported
  73 + # WARNING: This feature is known to work, but unsupported
74 74 # Note that three settings need to be changed for this to work.
75 75 # 1) In your application.rb file: config.relative_url_root = "/gitlab"
76 76 # 2) In your gitlab.yml file: relative_url_root: /gitlab
77   - # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT']
  77 + # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
78 78 #
79 79 # config.relative_url_root = "/gitlab"
80 80 end
... ...
config/gitlab.yml.example
... ... @@ -20,11 +20,11 @@ production: &base
20 20 https: false
21 21  
22 22 # Uncomment and customize the last line to run in a non-root path
23   - # WARNING: This feature is no longer supported
  23 + # WARNING: This feature is known to work, but unsupported
24 24 # Note that three settings need to be changed for this to work.
25 25 # 1) In your application.rb file: config.relative_url_root = "/gitlab"
26 26 # 2) In your gitlab.yml file: relative_url_root: /gitlab
27   - # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT']
  27 + # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
28 28 #
29 29 # relative_url_root: /gitlab
30 30  
... ...
config/unicorn.rb.example
... ... @@ -8,6 +8,15 @@
8 8 # See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
9 9 # documentation.
10 10  
  11 +# Uncomment and customize the last line to run in a non-root path
  12 +# WARNING: This feature is known to work, but unsupported
  13 +# Note that three settings need to be changed for this to work.
  14 +# 1) In your application.rb file: config.relative_url_root = "/gitlab"
  15 +# 2) In your gitlab.yml file: relative_url_root: /gitlab
  16 +# 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
  17 +#
  18 +# ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
  19 +
11 20 # Use at least one worker per core if you're on a dedicated server,
12 21 # more will usually help for _short_ waits on databases/caches.
13 22 worker_processes 2
... ...