feat(deploy): Fly.io deploy via GitHub Actions#2
Closed
yashksaini-coder wants to merge 1 commit into
Closed
Conversation
Add fly.toml (always-on container, /health check, /data volume for run history) and .github/workflows/deploy.yml, which stages the GitHub Secrets onto the Fly app via 'flyctl secrets set --stage' and deploys on push to master.
|
|
Owner
Author
|
Superseded by the new architectural direction in PR #3 (Vercel-read + Render-write split, GitHub OAuth for owner auth). The Fly.io deploy approach is no longer the plan — Render is the production write host today, Vercel takes the public read side. See |
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.
What
Adds a Fly.io deployment for the public dashboard (a long-running, stateful Express server — not serverless-compatible).
fly.toml— builds the existing Dockerfile,internal_port 3000,force_https,/healthcheck,min_machines_running = 1(keeps in-memory sessions/throttle alive), 1 GB VM (resvg won't OOM),/datavolume +DEVNOTION_RUNS_PATHso run history survives redeploys..github/workflows/deploy.yml— on push tomaster(+ manual dispatch), stages the GitHub Secrets onto the Fly app viaflyctl secrets set --stage, thenflyctl deploy.Why not Vercel
Sessions, rate-limiter, run store, generated PNGs, and multi-minute background runs all assume one persistent process with writable disk — serverless breaks every one.
One-time bootstrap before the first deploy
Then add 9 repo secrets:
FLY_API_TOKEN,GH_TOKEN,GH_USERNAME,GOOGLE_API_KEYS,NOTION_TOKEN,NOTION_PARENT_PAGE_ID,DEVTO_API_KEY,DASHBOARD_PASSWORD_HASH,IMAGE_PUBLIC_BASE_URL.Security review notes (verified)
FLY_API_TOKEN) flow viaenv:+$VAR— none interpolated on a command line; noecho/set -xleakage.GH_TOKEN/GH_USERNAMEmapped toGITHUB_TOKEN/GITHUB_USERNAMEinside the flyctl call (GitHub reserves theGITHUB_env prefix).setup-flyctlpinned to@v1;permissions: contents: read; concurrency group prevents overlapping deploys.