Changelog
- Merge v3.5.5 from v3.4.1
- Cherry-pick commits by friends.cafe since v3.4.1 to v3.4.6+fix.1
- .ruby-version update to 3.0.5
Upgrade notes
The following instructions are for updating from v3.4.6+fix.1 at friends.cafe.
- Stop frontend server's routing. (change haproxy.cfg(comment out mastodon_puma and mastodon_streaming) and systemctl reload haproxy)
- Stop mastodon service.
- Backup database.
git fetch origin
git checkout v3.5.5+cafe.1
sudo apt update
andsudo apt upgrade
- Update npm with
sudo npm install -g npm@9.1.2
. - Install ruby 3.0.5
rbenv update
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.0.5
rbenv global 3.0.5
gem update --system --no-document
- Install dependencies
bundle install
yarn install
- Configure .env and config/database.yml for bypass pgbouncer.
RAILS_ENV=production bundle exec rails db:migrate
- Recovery .env and config/database.yml.
RAILS_ENV=production bundle exec rails assets:precompile
- Update Browserslist
npx browserslist@latest --update-db
RAILS_ENV=production bin/tootctl cache clear
- Start mastodon service.
- Start frontend server's routing. (change haproxy.cfg and systemctl reload haproxy)