fix(deploy): run database seed from compiled dist in Docker

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-08 17:45:33 +08:00
parent 55a7043cbd
commit b4d3315db8
7 changed files with 35 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ npx prisma generate
if [ "$SEED_DATABASE" = "true" ]; then
echo "[api] seeding database..."
npx prisma db seed
node dist/infrastructure/database/seed-cli.js
fi
if [ -d /app/uploads-default/banners ] && [ ! -f /app/uploads/banners/welcome.svg ]; then