temp: add DB reset script (will remove after use)
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Run seed (creates test user if not exists)
|
||||
echo "Running database seed..."
|
||||
bun run db:seed || echo "Seed skipped or failed (may already exist)"
|
||||
# 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 "Starting API..."
|
||||
|
||||
Reference in New Issue
Block a user