innozverse-flyio-deploy

lastcow 的头像作者 lastcow

部署 innozverse API 至 Fly.io,管理部署、检查状态、查看日志、排查部署问题。用于部署 API 或调试 Fly.io 部署问题。

📖 中文导读:部署 innozverse API 至 Fly.io,管理部署、检查状态、查看日志、排查部署问题。用于部署 API 或调试 Fly.io 部署问题。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: innozverse-flyio-deploy description: Deploy the innozverse API to Fly.io, manage deployments, check status, view logs, and troubleshoot deployment issues. Use when deploying the API or debugging Fly.io deployment problems.

innozverse Fly.io Deployment Skill

Quick reference for deploying the innozverse API to Fly.io.

Prerequisites

brew install flyctl  # macOS
fly auth login

First Deployment

cd apps/api
fly launch  # Follow prompts
fly secrets set API_VERSION=1.0.0
fly deploy

Subsequent Deployments

cd apps/api
fly deploy

Common Commands

fly status              # Check app status
fly logs                # View logs
fly ssh console         # SSH into machine
fly secrets set KEY=val # Set environment variable
fly scale memory 512    # Scale memory
fly open                # Open app in browser

Configuration (fly.toml)

Located at apps/api/fly.toml:

  • app: App name on Fly.io
  • internal_port: 8080 (must match PORT in code)
  • auto_stop_machines: Scale to zero when idle
  • Health check: /health endpoint

Troubleshooting

Build fails: Check Dockerfile, verify dependencies Health check fails: Test /health endpoint locally Connection issues: Check fly status, verify region

Resources

See docs/deployment-flyio.md for full guide.