Project

General

Profile

Demande #6245

Màj mastodon 4.2.0

Added by Quentin Gibeaux 2 months ago. Updated 2 months ago.

Status:
Fermé
Priority:
Normale
Category:
-
Target version:
Start date:
09/06/2023
Due date:
% Done:

0%

Estimated time:
Difficulté:
2 Facile

Description

mise à jour majeure


Related issues

Copied from Admins - Demande #6242: Màj mastodon 4.1.8Fermé09/06/2023

Actions
Copied to pouet.chapril.org - Demande #6246: Màj mastodon 4.2.0Fermé09/06/2023

Actions

History

#1

Updated by Quentin Gibeaux 2 months ago

#2

Updated by Quentin Gibeaux 2 months ago

  • Status changed from Nouveau to Résolu
# dump db
(April) root@pouet:~# time /etc/rrsync.d/dump-pgsql 
#passage à node 16
(April) root@pouet:/etc/apt/sources.list.d[bullseye$ u=]# sed -e 's/14/16/g' -i /etc/apt/sources.list.d/nodejs.list 
(April) root@pouet:/etc/apt/sources.list.d[bullseye$ u=]# apt update
(April) root@pouet:/etc/apt/sources.list.d[bullseye$ u=]# apt dist-upgrade
(April) root@pouet:~# su - mastodon
(April) mastodon@pouet:~$ cd live/
#upgrade ruby
(April) mastodon@pouet:~/live[live-4.1.8]$ git -C /home/mastodon/.rbenv/plugins/ruby-build pull
(April) mastodon@pouet:~/live[live-4.1.8]$ RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.2.2
(April) mastodon@pouet:~/live[live-4.1.8]$ rbenv global 3.2.2
(April) mastodon@pouet:~/live[live-4.1.8]$ RELEASE=4.2.0 && git fetch --all && git checkout v${RELEASE?} && git checkout -b live-${RELEASE?}
(April) mastodon@pouet:~/live[live-4.2.0]$ bundle install && yarn install --frozen-lockfile
(April) mastodon@pouet:~/live[live-4.2.0]$ RAILS_ENV=production bundle exec rails assets:precompile
(April) mastodon@pouet:~/live[live-4.2.0]$ SKIP_POST_DEPLOYMENT_MIGRATIONS=true RAILS_ENV=production bundle exec rails db:migrate
(April) mastodon@pouet:~/live[live-4.2.0]$ exit
(April) root@pouet:~# cp ~mastodon/live/dist/mastodon-streaming*.service /etc/systemd/system/
(April) root@pouet:~# systemctl daemon-reload
(April) root@pouet:~# systemctl restart mastodon-sidekiq.service mastodon-streaming.service mastodon-web.service
(April) root@pouet:/etc/apt/sources.list.d[bullseye$ u=]# su - mastodon
(April) mastodon@pouet:~$ cd live/
(April) mastodon@pouet:~/live[live-4.2.0]$ RAILS_ENV=production bundle exec rails db:migrate

ràs

#3

Updated by Quentin Gibeaux 2 months ago

#4

Updated by Quentin Gibeaux 2 months ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF