fix(deploy): use prisma db push to sync schema before seeding
All checks were successful
Deploy Canina / deploy (push) Successful in 39s

This commit is contained in:
parsa aghaei 2026-08-15 16:39:38 +03:30
parent 287011ea0e
commit 0fb83142d6

View File

@ -76,7 +76,7 @@ echo "Waiting for backend to start..."
sleep 15
echo "Running migrations and seeding database..."
docker exec "$CONTAINER_PREFIX" npx prisma migrate deploy || true
docker exec "$CONTAINER_PREFIX" npx prisma db push --accept-data-loss || docker exec "$CONTAINER_PREFIX" npx prisma migrate deploy || true
docker exec "$CONTAINER_PREFIX" npx prisma db seed || true
echo "Deployment for $BRANCH completed successfully!"