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

This commit is contained in:
parsa aghaei committed 2026-08-15 16:39:38 +03:30
1 parent 287011ea0e
commit 0fb83142d6
1 file changed
+1 -1
+1 -1
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!"