#!/bin/sh set -e # Run Prisma migrations on every startup (idempotent) echo "Running database migrations..." DATABASE_URL="${DATABASE_URL:-file:/data/leadflow.db}" \ node node_modules/prisma/build/index.js migrate deploy \ --schema ./prisma/schema.prisma 2>&1 || echo "Migration warning (may already be up to date)" echo "Starting LeadFlow..." exec node server.js