Mise à jour de Mastodon Sunday 9th February 2020 12:00:00


Lancement de la mise à jour

Release v3.1.0

su - mastodon

cd ~/.rbenv/ && git pull && src/configure && make -C src

cd ~/.rbenv/plugins/ruby-build && git pull

exec bash

RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.5 && rbenv global 2.6.5

gem update --system

gem install bundler --no-document

cd ~/live && git fetch --tags && git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)

bundle config set without 'development test' && bundle config set deployment 'true'

Utiliser httplog 1.4.2, cf. httplog (1.4.1) doesn't seem to exist anymore, en éditant Gemfile et Gemfile.lock

bundle install -j$(getconf _NPROCESSORS_ONLN) && yarn install --pure-lockfile

RAILS_ENV=production bundle exec rails db:migrate

RAILS_ENV=production bundle exec rails assets:precompile

Relancer les processus.

systemctl restart mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service