Skip to content

Upgrading Harambot

DMcP89 edited this page Aug 9, 2024 · 1 revision

Upgrading harambot

Upgrading your harambot instance to the latest version is a fairly straight forward process.

This guide is intended only for those who are running their own instance of harambot. The public version of harambot is updated automatically with each release.

Download latest version of harambot

Docker

docker pull dmcp89/harambot@latest

Pip

pip install harambot --upgrade

Update the database

Check release notes for database migrations

Datebase migrations are changes to the database that harambot uses. These can be things like add new fields or changing default values.

The release notes for each version will detail if there are any migrations that need to be run for that release

Set the RUN_MIGRATIONS environment variable (only needed if there are migrations!)

export RUN_MIGRATIONS=True

This envrionment variable instructs harambot to run the available migrations before starting up.

Start Harambot

Once the steps above are complete you can start up harambot as normal. See Running harambot for more details.