Cifo_Administrador commited on
Commit
ce4c301
·
1 Parent(s): c918afd

fix: use prisma db push for ephemeral HF Spaces deploy

Browse files
Files changed (1) hide show
  1. entrypoint.sh +3 -2
entrypoint.sh CHANGED
@@ -1,9 +1,10 @@
1
  #!/bin/sh
2
  set -e
3
 
4
- echo "[entrypoint] Running Prisma migrate deploy..."
5
  cd backend
6
- npx prisma migrate deploy
 
7
 
8
  echo "[entrypoint] Starting PolySignal server..."
9
  exec node src/index.js
 
1
  #!/bin/sh
2
  set -e
3
 
4
+ echo "[entrypoint] Syncing Prisma schema (ephemeral SQLite)..."
5
  cd backend
6
+ # db push avoids broken migration issues on ephemeral containers
7
+ npx prisma db push --accept-data-loss
8
 
9
  echo "[entrypoint] Starting PolySignal server..."
10
  exec node src/index.js