How to update Gitlab 5.0 in place

Last modified: [last-modified]

It’s been a few days since I deployed Gitlab following an earlier article I posted. Now I want to check for updates and apply them. It’s actually pretty straight forward.

This article assumes you followed my earlier one in how to setup Gitlab 5.0 on CentOS 6. It also only performs updates within the 5.0 branch of Gitlab. It will not get you to say 5.1 when that gets released.

  1. Stop Gitlab
    # As ROOT
    [[email protected]~] service gitlab stop
  2. Switch to the Gitlab user and update Gitlab and Gitlab-shell
    [[email protected]~] su - sa_gitlab
    [[email protected]~] cd ~/gitlab
    [[email protected]~] git pull
    [[email protected]~] bundle install
    
    [sa_gitla[email protected]~] cd ~/gitlab-shell
    [[email protected]~] git pull
  3. Switch back to root and restart Gitlab
    # As ROOT
    [[email protected]~] service gitlab start

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.