Mastodon upgrade workflow
This is the manual upgrade workflow for mementomori.social.
Test on the development environment
Start with logging in as the right user on your local Linux development environment.
This branch is 45 commits behind mastodon/mastodon:main.
Steps
Go to GitHub
Take note: "This branch is X commits behind mastodon/mastodon:main", add note to part above.
Sync fork with main
Fetch all changes:
Checkout main, build and test:
This is an alias for:
Check migrations:
Migrate:
If needs manual migrations, add:
After migrations you might need to clear cache before restart:
Test:
Does the audio notification work
Does the emoji picker work
Does everything seem normal
Does the different feeds work (bookmarks, favs...)
Does the toot edits work from the arrow https://mementomori.test/@rolle/111668884903746596
Reset search index (on dev first: sudo service elasticsearch start):
Rebuild search index:
Restart all services:
Create new branch for new version based on fresh main/tag:
Attempt to merge previous branch:
If it doesn't work with merge: Check the mods from last working branch, apply them on top of the branch and push the new working branch.
Update version:
Recompile:
It's good to clear cache sometimes:
Start Elasticsearch on dev:
Reset search index (on dev first: sudo service elasticsearch start):
If needed, build index for search:
Restart:
It's now time to test (If you see "Oops!An unexpected error occurred.", it is completely okay because we don't have access to the outside world.)
When everything works, push changes to git:
Set upstream when asked.
Install on production
When everything works properly, login to mementomori.social on mastodon user.
Backup first:
Fetch changes:
Check that all changes are there:
Update version:
Rebuild:
Migrate:
Clear cache:
Run immediately:
Open debug log:
Or monitor fatals:
Done!
Last updated