This commit is contained in:
MaKarin
2026-04-03 22:15:10 -07:00
parent 8a578baac0
commit 5000e6baa0
6 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
if [ -d "prisma/migrations" ] && [ -n "$(find prisma/migrations -mindepth 1 -maxdepth 1 -type d 2>/dev/null)" ]; then
echo "Applying Prisma migrations with migrate deploy..."
npx prisma migrate deploy
else
echo "No Prisma migrations found, syncing schema with db push..."
npx prisma db push
fi
exec node dist/src/main.js