Bootstrap dev environment - migrations, seeds, services, smoke tests
Validate and fix the development environment end-to-end. Follow this process exactly:
cd server && bundle exec rails db:migrate:status
If any migrations are down, run bundle exec rails db:migrate.
Use Grep and Read to scan server/db/seeds/ files for:
class_name: references that don't match actual models in server/app/models/foreign_key: paired with class_name:Report any issues found before proceeding.
cd server && bundle exec rails db:seed 2>&1
If seeds fail:
bundle exec rails db:seedsudo systemctl restart powernode-backend@default
sudo systemctl restart powernode-worker@default
Wait 5 seconds, then check status:
sudo scripts/systemd/powernode-installer.sh status
Run these health checks:
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/api/v1/health
curl -s -o /dev/null -w "%{http_code}" http://localhost:4567/
Expected: 200 for both. Report any failures.
Report: