hoffentlich

This commit is contained in:
2026-02-28 18:45:45 +01:00
parent 02bb2ed994
commit 35c23164bf
8 changed files with 44 additions and 25 deletions

View File

@@ -9,10 +9,10 @@ MIGRATIONS_DIR="./packages/shared/prisma/migrations"
set -- "$MIGRATIONS_DIR"/*/migration.sql
if [ -f "$1" ]; then
echo "Applying Prisma migrations..."
node_modules/.bin/prisma migrate deploy --schema=./packages/shared/prisma/schema.prisma
npx prisma migrate deploy --schema=./packages/shared/prisma/schema.prisma
else
echo "No Prisma migrations found. Syncing schema with db push..."
node_modules/.bin/prisma db push --skip-generate --schema=./packages/shared/prisma/schema.prisma
npx prisma db push --skip-generate --schema=./packages/shared/prisma/schema.prisma
fi
echo "Starting Next.js server..."