feat: Add Fly.io deployment configuration and GitHub Actions workflow#4
Merged
StuartF303 merged 1 commit intomainfrom Nov 6, 2025
Merged
Conversation
This adds complete Fly.io cloud deployment support with automatic GitHub Actions deployment. New Files: - fly.api.toml: Fly.io configuration for API backend - fly.web.toml: Fly.io configuration for Web frontend - docker/Dockerfile.api.prod: Production API Dockerfile (port 8080) - docker/Dockerfile.web.prod: Production Web Dockerfile with nginx - docker/nginx.prod.conf: Nginx config template with API URL substitution - .github/workflows/deploy-fly.yml: GitHub Actions deployment workflow - DEPLOYMENT.md: Quick deployment reference guide - docs/deployment/fly-io-deployment.md: Comprehensive Fly.io deployment guide Features: - Two-app architecture (API + Web) for optimal resource usage - Auto-scaling: Scale to zero when idle, auto-start on request - GitHub Actions auto-deployment on push to main - Environment variable support for API URL configuration - Health checks for both API and Web - Minimal resource usage (512MB API, 256MB Web) to fit free tier Configuration: - Primary region: iad (Ashburn, Virginia) - API: 1 shared CPU, 512MB RAM, port 8080 - Web: 1 shared CPU, 256MB RAM, port 8080 - HTTPS enforced on both applications Deployment: - Manual: flyctl deploy --config fly.api.toml - Auto: Push to main branch (requires FLY_API_TOKEN secret) Documentation: - Updated README.md with cloud deployment section - Full deployment guide with troubleshooting - GitHub Actions setup instructions - Cost optimization tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds complete Fly.io cloud deployment support with automatic GitHub Actions deployment.
New Files:
Features:
Configuration:
Deployment:
Documentation: