Adding a docker entrypoint script to auto migrate the database when started

This commit is contained in:
owenqwenstarsky
2026-01-24 17:12:10 -06:00
parent df9f598d87
commit a36d5b33c6
2 changed files with 16 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
echo "Running database migrations..."
npx prisma migrate deploy
echo "Starting application..."
exec node server.js