OSDN Git Service

Fixed comments for running gitlab in a non-root path
authorCrom (Thibaut CHARLES) <crom29@hotmail.fr>
Wed, 6 Nov 2013 10:14:48 +0000 (10:14 +0000)
committerCrom (Thibaut CHARLES) <crom29@hotmail.fr>
Wed, 6 Nov 2013 10:14:48 +0000 (10:14 +0000)
- If you don't edit gitlab-shell/config.yml, you wnon't be able to push via SSH (as described here: http://stackoverflow.com/questions/15746336/gitlab-cant-push-code-to-server)
- If you don't re-run sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production, some icons won't be visible

config/application.rb
config/gitlab.yml.example
config/unicorn.rb.example

index d85bcab..d06d47c 100644 (file)
@@ -71,10 +71,12 @@ module Gitlab
 
     # 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.
+    # Note that four 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"
+    # 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
+    # To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
     #
     # config.relative_url_root = "/gitlab"
 
index 163af22..bea0b71 100644 (file)
@@ -21,10 +21,12 @@ production: &base
 
     # 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.
+    # Note that four 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"
+    # 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
+    # To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
     #
     # relative_url_root: /gitlab
 
index e4e1342..911c93b 100644 (file)
 
 # 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.
+# Note that four 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"
+# 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
+# To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
 #
 # ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"