User Tools

Site Tools


mastodon_upgrade

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mastodon_upgrade [2024/10/26 15:00] – handlemastodon_upgrade [2026/04/25 20:27] (current) – handle
Line 9: Line 9:
 ====== Build a new version ====== ====== Build a new version ======
  
-**As of October 2024, these instructions seem to lead to a festival of annoying merge conflicts. See below for alternative.**Ā +  export NEW_VERSION=4.5.6
-Ā +
-  export NEW_VERSION=4.2.0  # change to actual new versionĀ +
-  git checkout trunk+
   git fetch upstream --tags   git fetch upstream --tags
-  git checkout -b merged-$NEW_VERSIONĀ +  git checkout sunbeam-changes
-  git merge v$NEW_VERSIONĀ +
-  git checkout trunkĀ +
-  git merge merged-$NEW_VERSIONĀ +
-  git pushĀ +
-Ā +
-Instead:Ā +
-Ā +
-  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 rebase v$NEW_VERSION
-  git push -fĀ +  # fix some probably annoying merge conflicts
-  git checkout trunkĀ +
-  git reset --hard v$NEW_VERSIONĀ +
-  git merge sunbeam-changes-new+
   git push -f   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 minutes.+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 20 minutes šŸŒ
  
 ====== Deploy the new version ====== ====== Deploy the new version ======
Line 43: Line 26:
   cd /var/services/mastodon   cd /var/services/mastodon
   sudo -u services git pull   sudo -u services git pull
-  sudo docker-compose pull && \Ā +  sudo -sĀ 
-    sudo docker-compose down && \Ā +  docker-compose pull && \Ā 
-    sudo docker-compose up -dĀ +    docker-compose down && \Ā 
-  sudo docker-compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true web bundle exec rails db:migrate+    docker-compose up -dĀ 
 +  docker-compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true web bundle exec rails db:migrate
mastodon_upgrade.1729954845.txt.gz Ā· Last modified: by handle