Перевод: оболочка страницы на русском; тело навыка (SKILL.md) пока на английском — это исходные инструкции агента.
Fly Deploy
Deploy a starter app to Fly.io with flyctl.
Метаданные навыка
| Source | Optional — install with vibeos skills install official/web-development/fly-deploy |
| Путь | optional-skills/web-development/fly-deploy |
| Версия | 1.0.0 |
| Автор | VibeOS |
| Лицензия | MIT |
| Платформы | linux, macos |
| Теги | fly, flyio, deploy, hosting, internet, docker |
| Связанные навыки | internet-starter, ship-web-service, deploy-presets, browser-network-assert |
Справка: полный SKILL.md
к сведению
Ниже полное определение навыка, которое VibeOS загружает при активации. Это инструкции, которые видит агент.
Fly Deploy
Ship an internet-starter (or similar) app to Fly.io with flyctl.
Secrets only via fly secrets / .env — never invent tokens in chat.
When to Use
- User wants a durable public URL (not Cloudflare temporary)
- After local health is green (
vibeos project servers,browser-network-assert)
Prerequisites
flyctlinstalled (curl -L https://fly.io/install.sh | shor brew)- User logged in:
fly auth login(orFLY_API_TOKENin.env) - App has a
Dockerfile(FastAPI starter includes one) or a Fly-compatible build - Install this optional skill:
vibeos skills install official/web-development/fly-deploy
How to Run
From the app root (e.g. apps/api or a FastAPI starter):
# once per app
fly launch --no-deploy --name <app-name> --region <region>
# review fly.toml, then:
fly deploy 2>&1 | tee /tmp/fly-deploy.log
python3 scripts/parse_fly_deploy.py /tmp/fly-deploy.log
Resolve scripts/parse_fly_deploy.py to this skill’s absolute path. JSON fields:
app, url, hostname, deployed.
Verify:
python3 …/browser-network-assert/scripts/assert_network.py \
--probe "$URL/health" --require-ok /health --max-5xx 0
Quick Reference
| Step | Command |
|---|---|
| Login | fly auth whoami |
| Launch | fly launch --no-deploy |
| Secrets | fly secrets set KEY=value |
| Deploy | fly deploy |
| Parse URL | parse_fly_deploy.py |
| Health | assert_network.py --probe …/health |
Procedure
- Local health green; do not deploy broken apps.
- Prefer staging app name (
*-staging) when unsure. - Set secrets from
.env.examplekeys the user provides — never invent. - Capture deploy log; parse URL; probe health remotely.
- Report URL + health result.
Pitfalls
- Do not commit
FLY_API_TOKEN. - Do not enable billing/scale surprises without asking.
- Next.js on Fly needs a Node Dockerfile — FastAPI starter is the default path; for Next, add a production Dockerfile first or use another host.
Verification
parse_fly_deploy.pyexits 0 with"deployed": true.- Remote
/healthreturns 2xx viaassert_network.py.