Commit c0f6a932b9277a49232348029198f3094276a84b

Authored by Sytse Sijbrandij
2 parents 96e21134 906c65b6

Merge pull request #5548 from CromFr/master

Fixed comments for running gitlab in a non-root path
config/application.rb
... ... @@ -71,10 +71,12 @@ module Gitlab
71 71  
72 72 # Uncomment and customize the last line to run in a non-root path
73 73 # WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
74   - # Note that three settings need to be changed for this to work.
  74 + # Note that four 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 77 # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
  78 + # 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
  79 + # To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
78 80 #
79 81 # config.relative_url_root = "/gitlab"
80 82  
... ...
config/gitlab.yml.example
... ... @@ -20,11 +20,13 @@ 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: We recommend creating a FQDN to host GitLab in a root path instead of this.
24   - # Note that three settings need to be changed for this to work.
  23 + # WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
  24 + # Note that four 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 27 # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
  28 + # 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
  29 + # To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
28 30 #
29 31 # relative_url_root: /gitlab
30 32  
... ...
config/unicorn.rb.example
... ... @@ -10,10 +10,12 @@
10 10  
11 11 # Uncomment and customize the last line to run in a non-root path
12 12 # WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
13   -# Note that three settings need to be changed for this to work.
  13 +# Note that four settings need to be changed for this to work.
14 14 # 1) In your application.rb file: config.relative_url_root = "/gitlab"
15 15 # 2) In your gitlab.yml file: relative_url_root: /gitlab
16 16 # 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
  17 +# 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
  18 +# To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
17 19 #
18 20 # ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
19 21  
... ...