
Fly.io Has Free Edge Deployment — Here's How to Deploy Your App Globally in 60 Seconds
Heroku died. Vercel is for frontends. Fly.io runs your full-stack app at the edge — Docker containers close to your users. What is Fly.io? Fly.io runs your app in micro-VMs on servers around the world. Your users get sub-50ms latency because the app runs near them. Quick Start # Install curl -L https://fly.io/install.sh | sh # Login fly auth login # Launch (auto-detects your framework) fly launch # Deploy fly deploy Deploy a Node.js App # Dockerfile FROM node:20-slim WORKDIR /app COPY package*.json ./ RUN npm ci --production COPY . . EXPOSE 3000 CMD ["node", "server.js"] fly launch # Creates fly.toml automatically fly deploy # Builds and deploys fly.toml Configuration app = "my-app" primary_region = "iad" [build] dockerfile = "Dockerfile" [http_service] internal_port = 3000 force_https = true auto_stop_machines = "stop" auto_start_machines = true min_machines_running = 1 [env] NODE_ENV = "production" Scale Globally # Add regions fly scale count 2 --region iad,ams # List regions fly reg
Continue reading on Dev.to DevOps
Opens in a new tab



