mastodon バージョンアップ記録
code:bash
sudo su -
sudo -u postgres pg_dumpall | gzip -c > mastodon.gz
su - mastodon
cd /home/mastodon/live
git fetch --tags
git checkout v4.1.4
バージョン確認
code:bash
# imagemagick
convert -version
# postgresql
psql --version
# redis
redis-server -v
# Node.js
node -v
# Ruby
ruby -v
Rubyのバージョンアップ
code:bash
git -C /home/mastodon/.rbenv/plugins/ruby-build pull
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.0.6
Nodeのバージョンアップ
もろもろ
code:bash
bundle install
yarn install --frozen-lockfile
# 必要があればリリースノートに書いてある
RAILS_ENV=production bundle exec rake db:migrate
# 必要があればリリースノートに書いてある
RAILS_ENV=production bundle exec rails assets:precompile
# please run:と出てきたので実行した
npx update-browserslist-db@latest
suで作業
code:bash
exit
systemctl restart mastodon-sidekiq
systemctl reload mastodon-web
systemctl restart mastodon-streaming
ℹ️ The recommended configuration for reverse proxies has been updated. Unlike updating Mastodon itself, this is not urgent, but hardening. The change is about setting Content-Security-Policy: default-src 'none'; form-action 'none' and X-Content-Type-Options: nosniff on assets. Check dist/nginx.conf for more information, and the documentation if you are proxying external object storage.