feat: Initialize Prisma database schema and update deployment scripts for robust migration handling.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
@@ -40,7 +38,7 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
command: >
|
||||
sh -c "npx prisma db push && node server.js"
|
||||
sh -c "npx prisma migrate deploy && node server.js"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user