Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
flyio
description
Deploy and scale full-stack applications globally on Fly.io platform
when-to-use
When deploying web applications, APIs, databases, or microservices that need global distribution and automatic scaling
version
1.1
source
https://fly.io/docs/
generated
"2026-01-21T00:00:00.000Z"
updated
"2026-01-21T00:00:00.000Z"
Fly.io Platform Skill
Overview
Fly.io is a platform for deploying full-stack applications and databases globally. It runs your apps on Machines (fast-launching VMs) close to your users and scales compute resources automatically based on demand.
When to Use This Skill
Use Fly.io when you need to:
Deploy web applications with global distribution
Run Docker containers in production
Scale applications automatically based on load
Deploy databases (Postgres, Redis) close to users
Run background jobs and workers
Build multi-region applications with low latency
Core Concepts
Applications
An app on Fly.io can be anything from a simple frontend web app to a complex arrangement of processes and Machines all doing their own thing. Applications are defined using fly.toml configuration files.
Machines
Firecracker micro-VMs that run your application code. Machines can:
Start in milliseconds
Scale to zero when idle (autostop/autostart)
Run anywhere in Fly.io's global network
Be sized from minimal (shared-cpu-1x) to performance-optimized
Fly Launch
The primary deployment framework that manages the complete application lifecycle:
# Set autoscaling bounds
fly autoscale set min=2 max=10
# Configure concurrency limits
fly scale concurrency soft=200 hard=250
# Private app autostart/autostop# (automatically configured for internal services)
Volume Forking:
Fork volumes for rapid Machine initialization
Faster cold starts with pre-populated data
Useful for read-heavy workloads
4. Background Jobs & Automation
Distributed Work Queue:
# Deploy worker Machines
fly machines run <image> --env WORKER=true --region ord
# Use standby workers for redundancy
fly machine run <image> --env WORKER=true --standby-for <primary-id>
Cron-Based Task Scheduling:
# Using Supercronic for cron execution
FROM alpine:latest
RUN apk add --no-cache supercronic
COPY crontab /etc/crontab
CMD ["supercronic", "/etc/crontab"]
Infrastructure Automation:
Alternatives to Terraform for Fly.io infrastructure
Programmatic Machine creation via fly-machines API
Event-driven automation using webhooks
5. Developer Workflow Blueprints
Zero-Downtime Deployments:
# Default behavior with multiple Machines
fly deploy
# Rolling deployment with custom strategy
fly deploy --strategy rolling
Application Rollback:
# List recent releases
fly releases
# Rollback to previous version
fly releases rollback
# Create separate apps for environments
fly launch --name myapp-staging --org staging
fly launch --name myapp-production --org production
# Deploy to specific environment
fly deploy --app myapp-staging
fly deploy --app myapp-production
Per-User Development Environments:
# Create ephemeral dev environment
fly machines run <image> --name dev-$USERNAME --region ord
# Destroy when done
fly machines destroy dev-$USERNAME
6. Deployment Patterns
Static Site (Node.js)
FROM node:18-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80