Installation :
The installation process of gitlab-community edition is explained here,
Once you install, there might be a necessary to change the context path of the gitlab-server.
For example, when you install gitlab in an environment 192.168.10.10 then the gitlab GUI would be accessible from the url http://192.168.10.10/ . But normally you would want to add a context path to it i.e., you would want to access gitlab from the below url
The same would be achieved by modifying gitlab.rb file present in the installation directory.If you have access to the file, then open with default text editor and modify the property external_url to http://192.168.10.10/gitlab
Alternatively you can use below command to modify,
The installation process of gitlab-community edition is explained here,
https://about.gitlab.com/downloads/#centos6Configure custom Context-Path :
Once you install, there might be a necessary to change the context path of the gitlab-server.
For example, when you install gitlab in an environment 192.168.10.10 then the gitlab GUI would be accessible from the url http://192.168.10.10/ . But normally you would want to add a context path to it i.e., you would want to access gitlab from the below url
http://192.168.10.10/gitlab
The same would be achieved by modifying gitlab.rb file present in the installation directory.If you have access to the file, then open with default text editor and modify the property external_url to http://192.168.10.10/gitlab
Alternatively you can use below command to modify,
sudo vi gitlab.rbGo to the configuration external_url in the file and modify the property to below,
http://192.168.10.10/gitlabOnce you are done with the changes, you should let linux know about the change and to configure gitlab again, this can be done by the below command
sudo gitlab-ctl reconfigureOnce the command is executed, the context path is configured for gitlab.
No comments:
Post a Comment