C2(jobsync): impl — fix entrypoint to use local prisma binary

npx is not available in the nix container. Call prisma directly via
node node_modules/prisma/build/index.js instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-03-08 08:39:42 -07:00
commit 27039e7fe7

View file

@ -8,8 +8,8 @@ if [ -z "$AUTH_SECRET" ]; then
echo "AUTH_SECRET was not set — generated a temporary secret for this container."
fi
# Run Prisma migrations
npx prisma migrate deploy
# Run Prisma migrations (use local node_modules binary, not npx)
node node_modules/prisma/build/index.js migrate deploy
# Start the Next.js server
exec node server.js