Prototype stays untouched (Bonna's laptop daily driver until cutover). app/ is the deployable bms-backbone: same routes/frontend, Prisma models replacing node:sqlite, session-cookie login backed by a User table seeded via the platform SEED_OWNER_* convention (bcryptjs), /api/health with APP_VERSION, photos/files under DATA_DIR (/app/data uploads mount), Dockerfile + entrypoint (prisma db push + owner seed + serve), and a one-shot sqlite→postgres migration script for Bonna's existing data. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
9 lines
196 B
Bash
Executable File
9 lines
196 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
echo "==> prisma db push (schema sync)"
|
|
npx prisma db push --skip-generate
|
|
echo "==> owner seed"
|
|
node scripts/seed-owner.mjs
|
|
echo "==> starting bms-backbone"
|
|
exec node server.mjs
|