Upgrading
Upgrading is a pull and a restart. Lyna upgrades its database by itself on start.
Before you upgrade
Back up three things:
- The database, for example with
pg_dump. config/, which holdsconfig.yamlandtoken.key.data/, which holds uploaded product icons.
Database changes only go forward. To go back to an older version, you restore the backup.
With Docker Compose
docker compose pull
docker compose up -d
docker compose logs -f backend
Keep the backend and the frontend on the same version. Both images get the same tags.
What happens on start
- Lyna adds settings the new version knows to
config.yamland logs which ones. Read that line; a new feature may need you to fill one in. See after an upgrade. - Lyna applies the database changes the new version brings.
- The bot connects and the API starts.
If the backend fails to start, its log says why. Fix the cause and start it again; nothing is applied twice.