Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 588 Bytes

4.1-to-4.2.md

File metadata and controls

38 lines (21 loc) · 588 Bytes

From 4.1 to 4.2

1. Stop server & resque

sudo service gitlab stop

2. Update code & db

#Set the working directory
cd /home/gitlab/gitlab/

# Get latest code
sudo -u gitlab git fetch

sudo -u gitlab git checkout 4-2-stable

# Install libs
sudo -u gitlab bundle install --without development test postgres --deployment

# update db
sudo -u gitlab bundle exec rake db:migrate RAILS_ENV=production

3. Check GitLab's status

sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production

4. Start all

sudo service gitlab start