#!/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