Security Update! Hometown v1.0.5 (Mastodon 3.4.6)
This release brings us the security patches in v3.4.6 (plus all the nice stuff from releases between 3.4.0 and this one, too).
Changes this release:
- updating to Mastodon 3.4.6
This release is up to date with Mastodon v3.4.6, 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.4.0
If you already have Hometown installed and are upgrading from v1.05+3.4.0
, do the following:
git remote update && git checkout v1.0.5+3.4.6
As always, make sure you have backups of the database before performing any upgrades. If you are using docker-compose, this is how a backup command might look: docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump
Non-Docker only:
- Install dependencies:
bundle install
andyarn install
Both Docker and non-Docker:
-
Run the pre-deployment database migrations:
- Non-Docker:
RAILS_ENV=production bundle exec rails db:migrate
- Docker:
docker-compose run --rm 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