fix: seed script now clears all data (DB reset requested)
Some checks failed
CI/CD / check (push) Failing after 26s
CI/CD / deploy (push) Has been skipped

This commit is contained in:
2026-01-30 04:22:43 +00:00
parent ee3cfa263f
commit 30a535c481
4 changed files with 21 additions and 183 deletions

View File

@@ -1,17 +1,11 @@
#!/bin/bash
set -e
# One-time DB reset (remove this block after running)
if [ "$RESET_DB" = "true" ]; then
echo "🔴 RESETTING DATABASE..."
bun run src/reset-db.ts
echo "✅ Database reset complete"
fi
# Push schema
echo "Running db:push..."
bun run db:push || echo "db:push skipped"
# Start the app
echo "Running database seed..."
bun run db:seed || echo "Seed skipped"
echo "Starting API..."
exec bun run src/index.ts