gitlab-org--gitlab-foss/doc/update/4.1-to-4.2.md

37 lines
740 B
Markdown
Raw Normal View History

# From 4.1 to 4.2
*Make sure you view this [upgrade guide from the `master` branch](../../../master/doc/update/4.1-to-4.2.md) for the most up to date instructions.*
2014-04-24 22:48:22 +00:00
## 1. Stop server & Resque
sudo service gitlab stop
2014-04-24 22:48:22 +00:00
## 2. Update code & DB
```bash
#Set the working directory
cd /home/gitlab/gitlab/
# Get latest code
sudo -u gitlab -H git fetch
sudo -u gitlab -H git checkout 4-2-stable
# Install libs
sudo -u gitlab -H bundle install --without development test postgres --deployment
# update db
sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production
```
2014-04-24 22:48:22 +00:00
## 3. Check GitLab's status
```bash
sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production
```
2014-04-24 22:48:22 +00:00
## 4. Start all
sudo service gitlab start