Upgrade 8.14.2
This commit is contained in:
parent
703f2057b8
commit
62d3e2b550
|
@ -412,12 +412,71 @@ $ git commit -a -m 'change default user'
|
||||||
$ cd ~/gitlab
|
$ cd ~/gitlab
|
||||||
$ bundle install --without development test mysql aws kerberos --deployment
|
$ bundle install --without development test mysql aws kerberos --deployment
|
||||||
$ bundle clean
|
$ bundle clean
|
||||||
$ bundle exec rake db:migrate RAILS_ENV=production
|
|
||||||
$ bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
|
$ bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
|
||||||
$ git commit -a -m 'upgraded to 8.14.1'
|
$ git commit -a -m 'upgraded to 8.14.1'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Démarrer GitLab
|
### Redémarrer GitLab
|
||||||
|
|
||||||
|
```
|
||||||
|
# /etc/init.d/gitlab-demo00 restart
|
||||||
|
```
|
||||||
|
|
||||||
|
### Vérifier le status
|
||||||
|
|
||||||
|
```
|
||||||
|
# sudo -iu gitlab-demo00
|
||||||
|
$ cd gitlab
|
||||||
|
$ bundle exec rake gitlab:env:info RAILS_ENV=production
|
||||||
|
$ bundle exec rake gitlab:check RAILS_ENV=production
|
||||||
|
```
|
||||||
|
|
||||||
|
Si tout est au vert, la migration s'est bien passé !
|
||||||
|
|
||||||
|
## Mineure 8.14.1 vers 8.14.2
|
||||||
|
|
||||||
|
### Backup
|
||||||
|
|
||||||
|
```
|
||||||
|
# sudo -iu gitlab-demo00
|
||||||
|
$ cd gitlab
|
||||||
|
$ bundle exec rake gitlab:backup:create RAILS_ENV=production
|
||||||
|
```
|
||||||
|
|
||||||
|
### Mise à jour de GitLab
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd gitlab
|
||||||
|
$ git fetch --all
|
||||||
|
$ git checkout -- Gemfile.lock db/schema.rb
|
||||||
|
$ git checkout v8.14.2 -b v8.14.2
|
||||||
|
$ sed -i -e s'/app_user="git"/app_user="gitlab-demo00"/' \
|
||||||
|
-e 's/# Provides: .*gitlab$/# Provides: gitlab-demo00/' \
|
||||||
|
lib/support/init.d/gitlab
|
||||||
|
$ sed -i 's#script_path = "/etc/init.d/gitlab"#script_path = "/etc/init.d/gitlab-demo00"#g' lib/tasks/gitlab/check.rake
|
||||||
|
$ git commit -a -m 'change default user'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Mise à jour de gitlab-workhorse
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd ~/gitlab-workhorse
|
||||||
|
$ git fetch
|
||||||
|
$ git checkout v$(cat ~/gitlab/GITLAB_WORKHORSE_VERSION) -b v$(cat ~/gitlab/GITLAB_WORKHORSE_VERSION)
|
||||||
|
$ make
|
||||||
|
```
|
||||||
|
|
||||||
|
### Mise à jour BDD, gems et assets
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd ~/gitlab
|
||||||
|
$ bundle install --without development test mysql aws kerberos --deployment
|
||||||
|
$ bundle clean
|
||||||
|
$ bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
|
||||||
|
$ git commit -a -m 'upgraded to 8.14.2'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Redémarrer GitLab
|
||||||
|
|
||||||
```
|
```
|
||||||
# /etc/init.d/gitlab-demo00 restart
|
# /etc/init.d/gitlab-demo00 restart
|
||||||
|
|
Loading…
Reference in a new issue