Upgrading
Docker
Section titled “Docker”See Docker → Updating.
From source
Section titled “From source”-
Pull the new code:
Terminal window git pull -
Reconcile dependencies:
Terminal window bun install -
Apply database migrations.
In production:
Terminal window bun run --cwd packages/prisma db-deployIn development (this can clear a development database in some cases):
Terminal window bun run --cwd packages/prisma db-migrate -
Compare your
.envagainst.env.examplefor new or renamed variables. -
Rebuild and restart:
Terminal window bun run buildbun run startIn development,
bun run devis enough.
Rolling back
Section titled “Rolling back”Prisma migrations are forward-only. Take a database dump before upgrading a production instance; that dump is your rollback path.