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