From 496559c743cb0157bd8bad40e077f37e1010d724 Mon Sep 17 00:00:00 2001 From: bserie Date: Tue, 29 Nov 2016 14:33:47 +0100 Subject: [PATCH] =?UTF-8?q?Section=20mise=20=C3=A0=20jour=208.14.0=20vers?= =?UTF-8?q?=208.14.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoGitlab/8.14.md | 58 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/HowtoGitlab/8.14.md b/HowtoGitlab/8.14.md index 4a3d028b..07878ee1 100644 --- a/HowtoGitlab/8.14.md +++ b/HowtoGitlab/8.14.md @@ -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