Agent skill
fly
Deploy and manage the photography portfolio backend on fly.io. Use when deploying the app, checking logs, checking status, scaling machines, or managing the fly.io deployment.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/devops/fly-bs7280-photo-portfolio
SKILL.md
Fly.io Management
This skill helps manage the photography portfolio backend deployment on fly.io.
App Information
- App name:
photography-portfolio-solitary-fire-836 - Region: sjc (San Jose, California)
- Backend directory:
backend/
Common Commands
Deploy
Deploy the backend to fly.io:
cd backend && fly deploy
For a faster deployment without building (if image is already pushed):
cd backend && fly deploy --no-cache
View Logs
Get real-time logs from the deployed app:
fly logs -a photography-portfolio-solitary-fire-836
Tail logs continuously:
fly logs -a photography-portfolio-solitary-fire-836 -f
Check Status
Check app status and running machines:
fly status -a photography-portfolio-solitary-fire-836
List all machines:
fly machines list -a photography-portfolio-solitary-fire-836
SSH into Machine
Open SSH session to the running machine:
fly ssh console -a photography-portfolio-solitary-fire-836
Execute a single command:
fly ssh console -a photography-portfolio-solitary-fire-836 -C "command here"
Scaling
Scale memory:
fly scale memory 512 -a photography-portfolio-solitary-fire-836
Scale VM count:
fly scale count 1 -a photography-portfolio-solitary-fire-836
Secrets Management
List secrets:
fly secrets list -a photography-portfolio-solitary-fire-836
Set a secret:
fly secrets set SECRET_NAME=value -a photography-portfolio-solitary-fire-836
Troubleshooting
Check recent events:
fly logs -a photography-portfolio-solitary-fire-836 --tail 100
Restart the app:
fly apps restart photography-portfolio-solitary-fire-836
Get machine details:
fly machine status <machine-id> -a photography-portfolio-solitary-fire-836
Deployment Checklist
When deploying:
- Ensure you're in the
backend/directory - Check that all secrets are set (if needed)
- Run
fly deploy - Monitor logs with
fly logs -fto verify successful startup - Check status with
fly statusto confirm machines are running
Notes
- The app uses auto-stop/auto-start machines (min_machines_running = 0)
- Backend runs on port 5001
- Uses CDN mode (USE_CDN = 'true')
- Photos directory is
/app/photos
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?