Mastodon

Topics: Communication

Mastodon is a decentralized social networking platform built around independently operated servers and ActivityPub.

Specific subtopics

User tools and docs

Browser:

RSS feeds:

Operations

Shut down running services

systemctl list-units --state=running | grep -o 'mastodon-.*\.service' | while read service; do echo "$service"; systemctl stop "$service"; done

Update

Check out new version:

git fetch origin
git checkout v4.1.4

Update dependencies:

bundle install
yarn install

Apply database changes (only on one web node):

RAILS_ENV=production bundle exec rails db:migrate

Precompile assets (on all web nodes):

RAILS_ENV=production bundle exec rails assets:precompile

Restart dead services

systemctl list-units --state=dead | grep -o 'mastodon-.*\.service' | while read service; do echo "$service"; systemctl start "$service"; done

Bookmarks