4.0-to-4.1.md 1.09 KB
Newer Older
1 2 3 4
# From 4.0 to 4.1

## Important changes

5 6 7 8
- Resque replaced with Sidekiq
- New options for configuration file added
- Init.d script should be updated
- **requires ruby1.9.3-p327**
9

10
## 1. Stop GitLab & Resque
11 12 13

    sudo service gitlab stop

14
## 2. Update GitLab
15 16

```bash
17 18
# Set the working directory
cd /home/gitlab/gitlab/
19 20 21 22 23 24 25 26 27 28 29 30 31

# Get latest code
sudo -u gitlab -H git fetch
sudo -u gitlab -H git checkout 4-1-stable

# Install gems for MySQL
sudo -u gitlab -H bundle install --without development test postgres

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

```

32
## 3. Replace init.d script with a new one
33 34 35 36 37

```
# backup old one
sudo mv /etc/init.d/gitlab /etc/init.d/gitlab.old

Johannes's avatar
Johannes committed
38
# get new one using sidekiq
Ben Bodenmiller's avatar
Ben Bodenmiller committed
39
sudo curl -L --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/4-1-stable/init.d/gitlab
40 41 42 43
sudo chmod +x /etc/init.d/gitlab

```

44
## 4. Check GitLab's status
45 46 47 48

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


49
## 5. Start GitLab & Sidekiq
50 51 52

    sudo service gitlab start

53
## 6. Remove old init.d script
54 55

    sudo rm /etc/init.d/gitlab.old