Add entrypoint script to run prisma db push on startup
This commit is contained in:
8
entrypoint.sh
Normal file
8
entrypoint.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Running Prisma DB push to ensure tables exist..."
|
||||||
|
npx prisma db push --skip-generate --accept-data-loss
|
||||||
|
|
||||||
|
echo "Starting Next.js server..."
|
||||||
|
exec node server.js
|
||||||
Reference in New Issue
Block a user