User Tools

Site Tools


mastodon_upgrade

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mastodon_upgrade [2023/10/07 16:25] โ€“ created handlemastodon_upgrade [2025/11/07 23:16] (current) โ€“ handle
Line 8: Line 8:
  
 ====== Build a new version ====== ====== Build a new version ======
 +
 +**New_instructions_final_FINAL_Nov2025.docx**
 +
 +//Theme still broken ๐Ÿ˜ญ//
 +
 +  export NEW_VERSION=4.5  # change to actual new version, beware wacky branch naming scheme??
 +  git fetch upstream --tags
 +  git checkout sunbeam-changes
 +  git rebase stable-$NEW_VERSION
 +  # fix some probably annoying merge conflicts
 +  git push -f
 +
 +<del>**As of October 2024, these instructions seem to lead to a festival of annoying merge conflicts. See below for alternative.**</del>
 +
 +  export NEW_VERSION=4.2.0  # change to actual new version
 +  git checkout trunk
 +  git fetch upstream --tags
 +  git checkout -b merged-$NEW_VERSION
 +  git merge v$NEW_VERSION
 +  git checkout trunk
 +  git merge merged-$NEW_VERSION
 +  git push
 +
 +<del>Instead (not yet tested ๐Ÿคก):</del>
 +
 +  export NEW_VERSION=4.2.0  # change to actual new version
 +  git fetch upstream --tags
 +  git checkout sunbeam-changes-new
 +  git pull
 +  git rebase v$NEW_VERSION
 +  git push -f
 +  git checkout trunk
 +  git reset --hard v$NEW_VERSION
 +  git merge sunbeam-changes-new
 +  git push -f
 +
 +Then check [[https://gitlab.com/sunbeam.city/mastodon/-/jobs|the "Jobs" page on Gitlab]], and you should see the Docker image build happily running ๐Ÿƒ It takes about 8 minutes.
  
 ====== Deploy the new version ====== ====== Deploy the new version ======
  
 +SSH to the server (arkology.sunbeam.city).
 +
 +Then run:
  
 +  cd /var/services/mastodon
 +  sudo -u services git pull
 +  sudo -s
 +  export COMPOSE_FILE="compose.yml:compose.sunbeam.yml"
 +  docker-compose pull && \
 +    docker-compose down && \
 +    docker-compose up -d
 +  docker-compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true web bundle exec rails db:migrate
mastodon_upgrade.1696695944.txt.gz ยท Last modified: 2023/10/07 16:25 by handle