Skip to content

Upgrading

  1. Back up the database (pg_dump), the uploads/ folder and .email-key.
  2. Get the new version: download the release and unpack it over the old one (keeping .env, .email-key, uploads/ and backups/), or git pull and rebuild. With Docker, docker compose pull then docker compose up -d.
  3. Restart the server. It applies the new schema.sql by itself as it starts; every statement in it is safe to run again, so it only adds what's new.

Templates are read once when the server starts, so a restart is always needed. If you set SKIP_SCHEMA=1, apply the schema yourself first: psql -U postgres -d nbs -f schema.sql.