Hometown v1.0.5 (Mastodon 3.3.0)
First release in nine months! I am very sorry but also... 2020 was a hell of a year for motivation and ability to think and do things.
Changes this release:
- updating to Mastodon 3.3.0, which adds new features including changes to how audio and video are rendered in the web client (you can pop out audio/video and watch it while you scroll!)
No new features, this is just a parity release with upstream Mastodon, but I hope to release some good new features in the coming months.
This release is up to date with Mastodon v3.3.0, so please check there for individual patch notes if you're upgrading from a lower Mastodon version. If you're installing Hometown for the first time, please follow the instructions on the wiki.
Upgrading from v1.0.5+3.2.0
If you already have Hometown installed and are upgrading from v1.05+3.2.0
, do the following:
git remote update && git checkout v1.0.5+3.3.0
Non-Docker only:
The recommended Ruby version has been bumped to 2.7.2. You can upgrade, or you can continue using the old version by overwriting the .ruby-version file with e.g. 2.6.6 which was recommended previously
Install dependencies: bundle install and yarn install
Both Docker and non-Docker:
⚠️ Scheduled tasks have been moved to a dedicatedscheduler
queue in Sidekiq. If you only run a single Sidekiq process with no custom queue selection, you don't need to change anything. If you customize Sidekiq processes/queues, ensure that there is exactly one Sidekiq process that runs thescheduler
queue.
- Run the pre-deployment database migrations by specifying the
SKIP_POST_DEPLOYMENT_MIGRATIONS=true
environment variable:- Non-Docker:
SKIP_POST_DEPLOYMENT_MIGRATIONS=true RAILS_ENV=production bundle exec rails db:migrate
- Docker:
docker-compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true web rails db:migrate
- Non-Docker:
- Precompile the assets:
- Non-Docker:
RAILS_ENV=production bundle exec rails assets:precompile
- Docker: The assets are already precompiled during the build step
- Non-Docker:
- Restart all Mastodon processes
- Clear cache:
- Non-Docker:
RAILS_ENV=production bin/tootctl cache clear
- Docker:
docker-compose run --rm web bin/tootctl cache clear
- Non-Docker:
- Now that the new code is running, we can finish the database migrations. This will run the post-deployment ones:
- Non-Docker:
RAILS_ENV=production bundle exec rails db:migrate
- Docker:
docker-compose run --rm web rails db:migrate
- Non-Docker:
- Restart all Mastodon processes