Gitlab 6.3.1 default Warehouse path modification

Source: Internet
Author: User

Mark Down

Because the company uses the Gitlab default installation path under/home, and only 10G space is available in the home directory. A number of new project development, not long, space on the explosion, before the mother many warehouse migration, as if all are low version, or a key installation package installed, the basic wood has gitlab-ctl command, then how to modify the version of the warehouse path it?

1. Stop the service and create the directory you want to migrate to

#/etc/init.d/gitlab stop

#mkdir/git-data

2, copy the original warehouse directory to the/git-data directory, CP over the directory permissions to the same as the previous warehouse

#chmod-R ug+rwx,o-rwx/git-data/repositories/

#chmod-R ug-s/git-data/repositories/

#find/git-data/repositories/-type d-print0 | sudo xargs-0 chmod g+s

3. Modify the configuration file

# VIM/HOME/GIT/GITLAB/CONFIG/GITLAB.YML

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8B/2A/wKioL1hGTf3zh7nZAABsDGifF00453.jpg-wh_500x0-wm_3 -wmp_4-s_1226104533.jpg "title=" gitlab1.jpg "alt=" Wkiol1hgtf3zh7nzaabsdgiff00453.jpg-wh_50 "/>

# VIM/HOME/GIT/GITLAB-SHELL/LIB/GITLAB_CONFIG.RB

At line 11th, modify

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8B/2D/wKiom1hGTpuCWdHtAAA3bE6PC7w378.jpg-wh_500x0-wm_3 -wmp_4-s_3427712095.jpg "title=" gitlab2.jpg "alt=" Wkiom1hgtpucwdhtaaa3be6pc7w378.jpg-wh_50 "/>

4. Restart the service

#/etc/init.d/gitlab start


Gitlab 6.3.1 default Warehouse path modification

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.