#!/bin/sh
set -e

# Run migrations using the local prisma binary
echo "Running database migrations..."
node node_modules/prisma/build/index.js migrate deploy

# Start the application
echo "Starting application..."
exec "$@"
