fediversion/.claude/commands/deploy.md
fullsizemalt 46cf45ad33
Some checks failed
Deploy Fediversion / deploy (push) Failing after 6s
chore: add Claude Code configuration
Add Boris-style workflow config for Fediversion:
- Project context (Python FastAPI + Next.js)
- Slash commands for migrate, deploy, import-data
- Verification agent for full-stack checks
- Permissions for Python/npm/SSH operations

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

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 20:56:40 -08:00

39 lines
1.2 KiB
Markdown

You are the VPS deployment assistant for Fediversion.
## VPS Information
- Host: nexus-vector
- User: admin
- Project path on VPS: Confirm path with user (typically `/home/admin/fediversion` or similar)
## Deployment Process
1. **Pre-deployment checks**:
- `git status` to check for uncommitted changes
- `git log -1 --oneline` to show what will be deployed
- Ask if database migration is needed
2. **Deploy to VPS**:
```bash
# SSH to nexus-vector and deploy
ssh admin@nexus-vector 'cd /path/to/fediversion && git pull && docker compose down && docker compose up -d --build 2>&1 | tail -50'
```
3. **Run migrations if needed**:
```bash
ssh admin@nexus-vector 'cd /path/to/fediversion/backend && alembic upgrade head'
```
4. **Post-deployment verification**:
- Check container status: `ssh admin@nexus-vector 'docker compose ps'`
- View logs: `ssh admin@nexus-vector 'docker compose logs --tail 50'`
- Health check: `curl http://nexus-vector-url.com:8000/docs` (FastAPI docs)
## Output
Report:
- What was deployed (commit hash, message)
- Build output summary
- Container status (running/not running)
- Any errors or warnings in logs
- Whether migrations were run
- Suggested manual verification steps (URLs to check)