Skip to content
flexcal Documentation

Upgrading

See Docker → Updating.

  1. Pull the new code:

    Terminal window
    git pull
  2. Reconcile dependencies:

    Terminal window
    bun install
  3. Apply database migrations.

    In production:

    Terminal window
    bun run --cwd packages/prisma db-deploy

    In development (this can clear a development database in some cases):

    Terminal window
    bun run --cwd packages/prisma db-migrate
  4. Compare your .env against .env.example for new or renamed variables.

  5. Rebuild and restart:

    Terminal window
    bun run build
    bun run start

    In development, bun run dev is enough.

Prisma migrations are forward-only. Take a database dump before upgrading a production instance; that dump is your rollback path.