Demande #2907
Mise à jour mastodon 2.1.3 > 2.2.0
Début:
29/01/2018
Echéance:
% réalisé:
0%
Temps estimé:
Difficulté:
2 Facile
Description
Mise à jour en 2.2.0 de l'instance mastodon
Historique
Mis à jour par Quentin Gibeaux il y a environ 6 ans
Procédure de mise à jour particulière en raison de la mise à jour de ruby :
root@pouet:~# systemctl stop mastodon-sidekiq.service mastodon-streaming.service mastodon-web.service root@pouet:~# su - mastodon mastodon@pouet:~$ mastodon@pouet:~$ cd live/ mastodon@pouet:~/live$ git fetch remote: Counting objects: 994, done. remote: Total 994 (delta 627), reused 627 (delta 627), pack-reused 367 Réception d'objets: 100% (994/994), 414.65 KiB | 0 bytes/s, fait. Résolution des deltas: 100% (766/766), complété avec 331 objets locaux. Depuis https://github.com/tootsuite/mastodon * [nouvelle branche] fix-improve-user-tracking-test -> origin/fix-improve-user-tracking-test 35b84985..e14c2058 master -> origin/master * [nouvelle étiquette] v2.2.0 -> v2.2.0 * [nouvelle étiquette] v2.2.0rc1 -> v2.2.0rc1 * [nouvelle étiquette] v2.2.0rc2 -> v2.2.0rc2 mastodon@pouet:~/live$ git checkout v2.2.0 mastodon@pouet:~/live$ git checkout -b live-v2.2.0 mastodon@pouet:~/live$ bundle install rbenv: version `2.5.0' is not installed (set by /home/mastodon/live/.ruby-version) mastodon@pouet:~/live$ cd /home/mastodon/.rbenv/plugins/ruby-build && git pull && cd - mastodon@pouet:~/live$ rbenv install 2.5.0 mastodon@pouet:~/live$ gem install bundler mastodon@pouet:~/live$ bundle install (…) mastodon@pouet:~/live$ yarn install (…) mastodon@pouet:~/live$ RAILS_ENV=production bundle exec rails db:migrate mastodon@pouet:~/live$ RAILS_ENV=production bundle exec rails assets:precompile Webpacker is installed Using /home/mastodon/live/config/webpacker.yml file for setting up webpack paths Compiling… Compiled all packs in /home/mastodon/live/public/packs mastodon@pouet:~/live$ RAILS_ENV=production bundle exec rails mastodon:maintenance:remove_regeneration_markers mastodon@pouet:~/live$ exit root@pouet:~# systemctl start mastodon-sidekiq.service mastodon-streaming.service mastodon-web.service