carservice: initial commit

This commit is contained in:
Hermes
2026-07-20 21:17:12 +01:00
commit d315323191
69 changed files with 9255 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env sh
set -e
# If the SQLite DB file does not exist, initialise schema and seed
DB_PATH="/app/prisma/dev.db"
if [ ! -f "$DB_PATH" ]; then
echo "Database not found — initialising..."
npx prisma db push --accept-data-loss
node prisma/seed-auth.js
echo "Database ready."
fi
# Start the Next.js server
exec node server.js