Mastodon upgrade workflow
How mementomori.social is upgraded to a new Mastodon version.
Mastodon upgrades run through the upgrade workflow automation scripts. Its README has every step and setting.
mementomori-social/upgrade-workflow-automation
Repository on GitHub
Test on the development environment
Run the local script as the mastodon user:
cd ~ && (test -d upgrade-workflow-automation && cd upgrade-workflow-automation && git pull || git clone https://github.com/mementomori-social/upgrade-workflow-automation.git) && cd ~/upgrade-workflow-automation && bash mastodon-upgrade-local.shIt shows how far our fork is behind Mastodon, syncs it, creates a new dated mementomods branch, merges our changes from the previous branch, then builds and starts everything for testing. When the upgrade works, the new branch is pushed to GitHub.
Install on production
On the Mastodon server, as the mastodon user:
cd ~ && (test -d upgrade-workflow-automation && cd upgrade-workflow-automation && git pull || git clone https://github.com/mementomori-social/upgrade-workflow-automation.git) && cd ~/upgrade-workflow-automation && bash mastodon-upgrade-production.shThe script requires a database backup before it continues, then pulls the new branch, builds the assets, runs the database migrations with confirmations, rebuilds the search index when needed and restarts the services. It also prompts for the status page update and the upgrade announcement.
Mastodon Bird UI is updated separately with bash mastodon-bird-ui-update.sh when it has new changes.
Last updated 2 minutes ago by rollecode - ba7033a