mastodon_upgrade
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mastodon_upgrade [2023/10/07 17:14] โ handle | mastodon_upgrade [2024/10/26 15:01] (current) โ handle | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ====== 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.2.0 | export NEW_VERSION=4.2.0 | ||
| Line 17: | Line 19: | ||
| git merge merged-$NEW_VERSION | git merge merged-$NEW_VERSION | ||
| git push | git push | ||
| + | |||
| + | Instead (not yet tested ๐คก): | ||
| + | |||
| + | export NEW_VERSION=4.2.0 | ||
| + | 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:// | Then check [[https:// | ||
| Line 22: | Line 37: | ||
| ====== Deploy the new version ====== | ====== Deploy the new version ====== | ||
| + | SSH to the server (arkology.sunbeam.city). | ||
| + | |||
| + | Then run: | ||
| + | cd / | ||
| + | sudo -u services git pull | ||
| + | sudo docker-compose pull && \ | ||
| + | sudo docker-compose down && \ | ||
| + | sudo docker-compose up -d | ||
| + | sudo docker-compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true web bundle exec rails db:migrate | ||
mastodon_upgrade.1696698842.txt.gz ยท Last modified: 2023/10/07 17:14 by handle
