carservice: initial commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user