Agent Skill
2/7/2026deploy
Deploy fancai to production VPS. Use when deploying, shipping, or pushing to production.
S
sandk0
3GitHub Stars
1Views
npx skills add sandk0/fancai
SKILL.md
| Name | deploy |
| Description | Deploy fancai to production VPS. Use when deploying, shipping, or pushing to production. |
name: deploy description: Deploy fancai to production VPS. Use when deploying, shipping, or pushing to production. disable-model-invocation: true allowed-tools: Bash, Read
Deploy to Production
Pre-deployment Checks
- Run frontend build:
cd frontend && npm run build - Run backend type-check:
cd backend && python -m mypy app/ --ignore-missing-imports - Run tests:
cd frontend && npm test -- --watchAll=falseandcd backend && pytest -v --tb=short - Check git status is clean:
git status - Check current branch is main:
git branch --show-current
Deployment Steps
- Push to main:
git push origin main - SSH to server and deploy:
ssh root@77.246.106.109 "cd /root/fancai-vibe-hackathon && git pull origin main && docker compose -f docker-compose.prod.yml build backend && docker compose -f docker-compose.prod.yml up -d backend"
Post-deployment Verification
- Wait 10 seconds for container startup
- Check containers:
ssh root@77.246.106.109 "cd /root/fancai-vibe-hackathon && docker compose -f docker-compose.prod.yml ps" - Check logs:
ssh root@77.246.106.109 "cd /root/fancai-vibe-hackathon && docker compose -f docker-compose.prod.yml logs --tail=20 backend" - Report deployment status
Optional: Flush Redis
Only if requested: ssh root@77.246.106.109 "docker exec bookreader_redis redis-cli FLUSHDB"
Skills Info
Original Name:deployAuthor:sandk0
Download