Thursday, April 28, 2016

Installation and change context path of gitlab server in linux

Installation :

The installation process of gitlab-community edition is explained here,
https://about.gitlab.com/downloads/#centos6
Configure 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.rb
Go to the configuration external_url in the file and modify the property to below,
http://192.168.10.10/gitlab
Once 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 reconfigure 
Once the command is executed, the context path is configured for gitlab.

No comments:

Post a Comment