Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
c0f6a932
Commit
c0f6a932
authored
Dec 09, 2013
by
Sytse Sijbrandij
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5548 from CromFr/master
Fixed comments for running gitlab in a non-root path
parents
96e21134
906c65b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
config/application.rb
config/application.rb
+3
-1
config/gitlab.yml.example
config/gitlab.yml.example
+4
-2
config/unicorn.rb.example
config/unicorn.rb.example
+3
-1
No files found.
config/application.rb
View file @
c0f6a932
...
@@ -71,10 +71,12 @@ module Gitlab
...
@@ -71,10 +71,12 @@ module Gitlab
# Uncomment and customize the last line to run in a non-root path
# Uncomment and customize the last line to run in a non-root path
# WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
# WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
# 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"
# 1) In your application.rb file: config.relative_url_root = "/gitlab"
# 2) In your gitlab.yml file: 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"
# 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"
# config.relative_url_root = "/gitlab"
...
...
config/gitlab.yml.example
View file @
c0f6a932
...
@@ -20,11 +20,13 @@ production: &base
...
@@ -20,11 +20,13 @@ production: &base
https: false
https: false
# Uncomment and customize the last line to run in a non-root path
# Uncomment and customize the last line to run in a non-root path
# WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
# WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
# 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"
# 1) In your application.rb file: config.relative_url_root = "/gitlab"
# 2) In your gitlab.yml file: 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"
# 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
# relative_url_root: /gitlab
...
...
config/unicorn.rb.example
View file @
c0f6a932
...
@@ -10,10 +10,12 @@
...
@@ -10,10 +10,12 @@
# Uncomment and customize the last line to run in a non-root path
# Uncomment and customize the last line to run in a non-root path
# WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
# WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
# 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"
# 1) In your application.rb file: config.relative_url_root = "/gitlab"
# 2) In your gitlab.yml file: 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"
# 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"
# ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment