echos-ocr/start.sh
Randall Stillwell f174bd9977 Fix prisma CLI in production container for db push
Use a separate Docker stage to install prisma CLI + all transitive
deps, then merge into the runner's node_modules with correct ownership.
Verified: prisma --version works inside the container.

Made-with: Cursor
2026-03-10 13:45:04 -05:00

8 lines
239 B
Bash
Executable file

#!/bin/sh
set -e
echo "Running database migrations..."
node node_modules/prisma/build/index.js db push --skip-generate 2>&1 || echo "Warning: prisma db push failed, tables may already exist"
echo "Starting server..."
exec node server.js