The NAS container was crash-looping: npx pulled Prisma 7.8.0 (which rejects url in the datasource), and the alpine + non-root + standalone setup couldn't detect openssl or write the migration engine. Switch to the FMB-proven runtime (node:20-bookworm-slim + openssl, run as root, full node_modules, next start) so the local pinned Prisma 5.22 CLI runs and migrations apply cleanly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 lines
106 B
Bash
8 lines
106 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
echo "[moonbase] running prisma migrate deploy..."
|
|
npx prisma migrate deploy
|
|
|
|
exec "$@"
|