Deploy to Fly.io
Deploy FastSvelte on Fly.io for global edge deployment with low-latency container hosting.
What You'll Use
- Fly Machines - Run your FastAPI backend container globally
- Fly Postgres - PostgreSQL database cluster
- Fly Static Sites - Host frontend (or use Vercel/Netlify)
Cost Estimate
For a small production app: - Machines (shared-cpu-1x): ~$3-5/month - Postgres (single node): ~$2-5/month - Static sites: Free tier available
Total: ~$5-10/month (very affordable!)
Why Fly.io?
- Global edge network - Deploy close to your users
- Developer-focused - Great CLI and DX
- Affordable - Generous free tier
- Fast - Low latency worldwide
- Flexible - Full control over infrastructure
Deployment Guide
Coming soon! This guide is under development.
In the meantime, Fly.io has excellent documentation: - Fly.io Documentation - Deploy Docker Image - Fly Postgres
Quick Start
- Install Fly CLI:
brew install flyctl - Login:
fly auth login - Deploy backend:
fly launchin backend directory - Create Postgres:
fly postgres create - Attach database:
fly postgres attach - Deploy frontend to Vercel/Netlify or Fly static sites
Key Features
- Global Anycast network
- Automatic HTTPS/SSL
- Zero-downtime deployments
- Built-in metrics and logging
- Easy horizontal scaling
- Multi-region support
Want to contribute this guide? Open a PR with your deployment experience!