Files
stack/apps/api/docker-entrypoint.sh
Jason Woltje bcee4fa601
All checks were successful
ci/woodpecker/push/api Pipeline was successful
fix(api): auto-run migrations on container start and fix ESM warning
- Add docker-entrypoint.sh that runs prisma migrate deploy before
  starting the app, ensuring all tables exist on deployment
- Add "type": "module" to package.json to eliminate Node.js ESM
  reparsing warning for eslint.config.js

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 16:47:57 -06:00

9 lines
169 B
Bash
Executable File

#!/bin/sh
set -e
echo "Running database migrations..."
npx prisma migrate deploy --schema ./prisma/schema.prisma
echo "Starting application..."
exec node dist/main.js