BigW Consortium Gitlab

4.1-to-4.2.md 740 Bytes
Newer Older
1
# From 4.1 to 4.2
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.*
3

4
## 1. Stop server & Resque
5 6 7

    sudo service gitlab stop

8
## 2. Update code & DB
9 10

```bash
11 12 13 14

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

15
# Get latest code
16
sudo -u gitlab -H git fetch
17

18
sudo -u gitlab -H git checkout 4-2-stable
19 20

# Install libs
21
sudo -u gitlab -H bundle install --without development test postgres --deployment
22 23

# update db
24
sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production
25 26 27

```

28
## 3. Check GitLab's status
29 30 31 32 33

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

34
## 4. Start all
35 36

    sudo service gitlab start