[SOLVED] What's the recommended path for updating from 2.5.2 to 2.7.1?

Hi everyone,

We did the installation using Docker. Currently we are using Mastodon 2.5.2 and we want to update it to 2.7.1. What’s the recommended path?

  • Updating step by step along all the versions (2.5.2 -> 2.6.0 -> 2.6.1 -> 2.6.2 -> 2.6.3 -> 2.6.4 -> 2.6.5 -> 2.7.0 -> 2.7.1)?
  • Updating only to intermediate versions that have database migrations (2.5.2 -> 2.6.0 -> 2.7.0 -> 2.7.1)?
  • Updating directly from 2.5.2 to 2.7.1?
  • Other options?

Any help would be appreciated. Thanks

I haven’t used Docker/docker-compose in a while, but it should be:

git checkout v2.7.1 # Jump to 2.7.1
docker-compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true web rails db:migrate
docker-compose up -d # This should re-create the containers with latest code
docker-compose run --rm web rails db:migrate
docker-compose restart web sidekiq

That should be a pretty universal set of instructions for any release jump.

1 Like

We have just tried it on our testing server and it worked like a charm :smile:

Thank you very much @Gargron!