Upgrading a Mastodon Binary Install

Brian Winkers
Feb 14, 2024

Notes for upgrading.

Perform work as mastodon user

sudo su - mastodon

Code is in ‘live’ directory

cd live

Update local code to the newest version

git fetch && git checkout v4.2.6

Build and install new version

bundle install
yarn install --frozen-lockfile

Restart all Mastodon processes

sudo systemctl restart mastodon-sidekiq
sudo systemctl reload mastodon-web
sudo systemctl restart mastodon-streaming

--

--

Brian Winkers

35 years building the most cutting edge sites on the Internet