fix(deploy): run database seed from compiled dist in Docker
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user