fly-deploy
Deploy applications to Fly.io using flyctl. Handles project detection, fly.toml generation, secrets configuration, and deployment. Use when deploying apps to Fly.io, creating fly.toml files, debugging Fly.io deployment failures, or configuring Fly.io services.
Best use case
fly-deploy is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Deploy applications to Fly.io using flyctl. Handles project detection, fly.toml generation, secrets configuration, and deployment. Use when deploying apps to Fly.io, creating fly.toml files, debugging Fly.io deployment failures, or configuring Fly.io services.
Teams using fly-deploy should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/fly-deploy/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How fly-deploy Compares
| Feature / Agent | fly-deploy | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Deploy applications to Fly.io using flyctl. Handles project detection, fly.toml generation, secrets configuration, and deployment. Use when deploying apps to Fly.io, creating fly.toml files, debugging Fly.io deployment failures, or configuring Fly.io services.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Fly.io Deployment Deploy applications to Fly.io from source code or Docker images. ## Prerequisites Ensure `flyctl` is installed and authenticated: ```bash # Check installation fly version # Authenticate if needed fly auth login ``` ## Deployment Workflow ### 1. Detect Project Type Examine the project root to determine the stack: | Indicator | Type | Reference | |-----------|------|-----------| | `next.config.*` | Next.js | [references/nextjs.md](references/nextjs.md) | | `Dockerfile` | Docker | [references/docker.md](references/docker.md) | | `package.json` (no Next) | Node.js | [references/nodejs.md](references/nodejs.md) | | `requirements.txt` / `pyproject.toml` | Python | [references/python.md](references/python.md) | | `index.html` only | Static | [references/static.md](references/static.md) | Read the appropriate reference file for framework-specific configuration. ### 2. Initialize or Configure **New app:** ```bash fly launch --no-deploy ``` This creates `fly.toml`. Review and adjust before deploying. **Existing app (no fly.toml):** ```bash fly launch --no-deploy # Or create fly.toml manually using references/fly-toml.md ``` ### 3. Set Secrets Set environment variables that shouldn't be in fly.toml: ```bash # Single secret fly secrets set DATABASE_URL="postgres://..." # Multiple secrets fly secrets set KEY1=value1 KEY2=value2 # From .env file cat .env | fly secrets import ``` Secrets trigger a redeploy. Use `--stage` to batch them: ```bash fly secrets set --stage KEY1=value1 fly secrets set --stage KEY2=value2 fly secrets deploy ``` ### 4. Deploy ```bash fly deploy ``` **Common flags:** - `--ha` — High availability (2+ machines, default) - `--no-ha` — Single machine (dev/staging) - `--strategy rolling|bluegreen|canary|immediate` - `--wait-timeout 5m` — Extend for slow builds ### 5. Verify ```bash # Check status fly status # View logs fly logs # Open in browser fly open ``` ## Troubleshooting If deployment fails, consult [references/troubleshooting.md](references/troubleshooting.md) for common errors and fixes. **Quick checks:** 1. Health check passing? Check `internal_port` matches app's listen port 2. App starting? Check `fly logs` for crash loops 3. Build failing? Check Dockerfile or buildpack compatibility ## Configuration Reference For detailed fly.toml options, see [references/fly-toml.md](references/fly-toml.md). **Key settings:** - `primary_region` — Where machines deploy by default - `[http_service]` — HTTP/HTTPS configuration - `[env]` — Non-sensitive environment variables - `[[vm]]` — CPU/memory sizing
Related Skills
vercel-deployment
Vercel deployment patterns and best practices. Use when deploying frontend applications, configuring edge functions, setting up preview deployments, or optimizing Next.js applications.
vercel-deploy
Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.
vercel-deploy-claimable
Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as 'Deploy my app', 'Deploy this to production', 'Create a preview deployment', 'Deploy and...
dev-specialisms:fly-deploy
Quick MVP deployment to fly.io for JavaScript (Next.js, RedwoodSDK, Express), Rust (Axum, Rocket), Python (FastAPI), and generic Dockerfiles. Use when deploying applications to fly.io, setting up databases (Postgres, volumes, Tigris object storage), managing secrets, configuring custom domains, setting up GitHub Actions workflows, creating review apps for pull requests, or troubleshooting fly.io deployments. Covers complete deployment workflows from initial setup through production.
vercel-secure-deploy
将 Google AI Studio 项目部署到 Vercel。当用户提到"部署"、"上线"、"发布网站"、"Vercel"、"保护 API 密钥"时触发。
Llm Local Deployment
Comprehensive guide for deploying LLMs locally using Ollama, vLLM, and llama.cpp. Local deployment offers privacy, cost control, and reduced latency compared to cloud APIs. This skill covers everythin
appdeploy
Deploy web apps with backend APIs, database, and file storage. Use when the user asks to deploy or publish a website or web app and wants a public URL. Uses HTTP API via curl.
MCP Deployment and Testing
This skill should be used when the user asks to "deploy MCP server", "test MCP", "use ngrok", "MCP Inspector", "connect to ChatGPT", "create connector", "troubleshoot MCP", "debug server", or needs guidance on deploying and testing MCP servers for the OpenAI Apps SDK.
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
websocket-engineer
Real-time communication specialist implementing scalable WebSocket architectures. Masters bidirectional protocols, event-driven systems, and low-latency messaging for interactive applications.
webscraping-ai-automation
Automate Webscraping AI tasks via Rube MCP (Composio). Always search tools first for current schemas.
webflow-automation
Automate Webflow CMS collections, site publishing, page management, asset uploads, and ecommerce orders via Rube MCP (Composio). Always search tools first for current schemas.