Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/server/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh
set -e
# Sync DB schema (creates tables if none exist; use migrate deploy once you have migration files)
npx prisma db push --schema=prisma/schema.prisma
# Apply pending migrations (idempotent — a no-op when the DB is already up to date).
# Replaces the old `prisma db push`, which could not run data-preserving migrations (e.g. adding a
# NOT NULL column to a populated table). Pre-existing databases were baselined for the initial
# schema + hash-refresh-tokens migrations via `prisma migrate resolve --applied`, so only new
# migrations run here.
npx prisma migrate deploy --schema=prisma/schema.prisma
exec node dist/main.js
Loading