We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0095b98 commit 8d5e0a2Copy full SHA for 8d5e0a2
package.json
@@ -5,7 +5,7 @@
5
"scripts": {
6
"dev": "next dev -p 3001",
7
"build": "next build",
8
- "start": "prisma migrate deploy && next start",
+ "start": "bash start.sh",
9
"lint": "next lint",
10
"db:generate": "prisma generate",
11
"db:push": "prisma db push",
start.sh
@@ -0,0 +1,13 @@
1
+#!/bin/bash
2
+
3
+# Wait for database to be ready
4
+echo "Waiting for database to be ready..."
+sleep 10
+# Run database migrations
+echo "Running database migrations..."
+npx prisma migrate deploy
+# Start the application
12
+echo "Starting the application..."
13
+npm start
0 commit comments