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
    [root@localhost~] service gitlab stop
  2. Switch to the Gitlab user and update Gitlab and Gitlab-shell
    [root@localhost~] su - sa_gitlab
    [sa_gitlab@localhost~] cd ~/gitlab
    [sa_gitlab@localhost~] git pull
    [sa_gitlab@localhost~] bundle install
    [sa_gitlab@localhost~] cd ~/gitlab-shell
    [sa_gitlab@localhost~] git pull
  3. Switch back to root and restart Gitlab
    # As ROOT
    [root@localhost~] service gitlab start

Leave a comment

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