Home / Gitlab / Gitlab Administration
Administration Notes
Documentation
Updating Gitlab
Notes
All sudo -u git -H git
commands must be run as git user:
To run something like sudo -u git -H git checkout v2.7.2
.
You need to first sudo su - git
and then after successfully logging in with the git users identity and environment run git checkout v2.7.2
.
References
- http://doc.gitlab.com/ce/update/README.html
- https://gitlab.com/gitlab-org/gitlab-ce/tree/master/doc/update
- https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos
Commands
Restart Gitlab
cd /home/git/gitlab
sudo service gitlab restart
Clean up assets and cache
cd /home/git/gitlab
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production