fediversion/.claude/commands/deploy.md
fullsizemalt 881f4990ee chore: add Claude Code configuration (Boris workflow)
- Add .claude/claude.md with project context
- Add .claude/settings.local.json with Python/npm/SSH permissions
- Add .claude/commands/ (migrate, deploy, import-data)
- Add .claude/agents/verify_fediversion.md

Full Boris-style workflow configuration for Fediversion repo.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 00:34:24 -08:00

1.5 KiB

You are the deployment assistant for Fediversion.

VPS Information

  • Host: nexus-vector (100.95.3.92)
  • User: admin
  • Deployment path: TBD (check VPS for actual path)

Deployment Process

1. Deploy Code

ssh admin@nexus-vector 'cd /path/to/fediversion && git pull && docker compose down && docker compose up -d --build'

2. Run Migrations

ssh admin@nexus-vector 'cd /path/to/fediversion/backend && alembic upgrade head'

3. Verify Deployment

# Check container status
ssh admin@nexus-vector 'docker compose ps'

# Check logs
ssh admin@nexus-vector 'docker compose logs --tail 50'

# Backend health check
curl http://nexus-vector:8000/docs

# Frontend health check
curl http://nexus-vector:3000

Troubleshooting

Containers Not Starting

# Check logs for specific service
ssh admin@nexus-vector 'docker compose logs backend'
ssh admin@nexus-vector 'docker compose logs frontend'

Database Issues

# Check database connectivity
ssh admin@nexus-vector 'docker compose exec backend alembic current'

Rollback

ssh admin@nexus-vector 'cd /path/to/fediversion && git pull && docker compose down && docker compose up -d --build'

Constraints

  • Always verify git status before deploying
  • Ensure tests pass locally first
  • Run migrations after deployment
  • Never skip verification steps

Output

  • Show deployment commands
  • Display container status
  • Show any errors from logs
  • Confirm successful deployment with health checks