Files
andris-carservice/deployment/entrypoint.sh
T
Hermes f7a9906add
Build and publish images / docker (push) Canceled after 0s
carservice: initial commit
2026-07-20 20:51:23 +01:00

15 lines
342 B
Bash

#!/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