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 [2026/02/14 19:09] (current) – handle | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| ====== Build a new version ====== | ====== Build a new version ====== | ||
| - | export NEW_VERSION=4.2.0 # change to actual new version | + | export NEW_VERSION=4.5.6 |
| - | git checkout trunk | + | |
| git fetch upstream --tags | git fetch upstream --tags | ||
| - | git checkout -b merged-$NEW_VERSION | + | git checkout |
| - | git merge v$NEW_VERSION | + | git rebase |
| - | | + | |
| - | git merge merged-$NEW_VERSION | + | git push -f |
| - | git push | + | |
| Then check [[https:// | Then check [[https:// | ||
| Line 22: | Line 20: | ||
| ====== Deploy the new version ====== | ====== Deploy the new version ====== | ||
| + | SSH to the server (arkology.sunbeam.city). | ||
| + | Then run: | ||
| + | |||
| + | cd / | ||
| + | sudo -u services git pull | ||
| + | sudo -s | ||
| + | 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.1696698842.txt.gz · Last modified: 2023/10/07 17:14 by handle
