push
This commit is contained in:
12
server/docker-entrypoint.sh
Normal file
12
server/docker-entrypoint.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
if [ -d "prisma/migrations" ] && [ -n "$(find prisma/migrations -mindepth 1 -maxdepth 1 -type d 2>/dev/null)" ]; then
|
||||
echo "Applying Prisma migrations with migrate deploy..."
|
||||
npx prisma migrate deploy
|
||||
else
|
||||
echo "No Prisma migrations found, syncing schema with db push..."
|
||||
npx prisma db push
|
||||
fi
|
||||
|
||||
exec node dist/src/main.js
|
||||
Reference in New Issue
Block a user