- 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>
68 lines
1.5 KiB
Markdown
68 lines
1.5 KiB
Markdown
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
|
|
```bash
|
|
ssh admin@nexus-vector 'cd /path/to/fediversion && git pull && docker compose down && docker compose up -d --build'
|
|
```
|
|
|
|
### 2. Run Migrations
|
|
```bash
|
|
ssh admin@nexus-vector 'cd /path/to/fediversion/backend && alembic upgrade head'
|
|
```
|
|
|
|
### 3. Verify Deployment
|
|
```bash
|
|
# 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
|
|
```bash
|
|
# Check logs for specific service
|
|
ssh admin@nexus-vector 'docker compose logs backend'
|
|
ssh admin@nexus-vector 'docker compose logs frontend'
|
|
```
|
|
|
|
### Database Issues
|
|
```bash
|
|
# Check database connectivity
|
|
ssh admin@nexus-vector 'docker compose exec backend alembic current'
|
|
```
|
|
|
|
### Rollback
|
|
```bash
|
|
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
|