Section mise à jour 8.14.0 vers 8.14.1

This commit is contained in:
Benoît S. 2016-11-29 14:33:47 +01:00
parent 9a38d9aefb
commit 496559c743

View file

@ -386,9 +386,63 @@ Si tout est au vert, c'est bon ! On pourra aller sur l'instance via https://demo
Le principe des mises à jour est basé sur un `git pull` et un `git checkout`.
## Mineure
## Mineure 8.14.0 vers 8.14.1
En attente nouvelle release mineure.
### Backup
```
# sudo -iu gitlab-demo00
$ cd gitlab
$ bundle exec rake gitlab:backup:create RAILS_ENV=production
```
### Arrêt du service
```
# /etc/init.d/gitlab-demo00 stop
```
### Mise à jour de GitLab
```
# sudo -iu gitlab-demo00
$ cd gitlab
$ git fetch --all
$ git checkout -- Gemfile.lock db/schema.rb
$ git checkout v8.14.1 -b v8.14.1
$ 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 BDD, gems et assets
```
$ cd ~/gitlab
$ bundle install --without development test mysql aws kerberos --deployment
$ bundle clean
$ bundle exec rake db:migrate RAILS_ENV=production
$ bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
```
### Démarrer GitLab
```
# /etc/init.d/gitlab-demo00 start
```
### 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é !
## Majeure