Operate Fly.io apps safely and repeatably with flyctl.
fly status, fly logs, fly config show, fly releases, fly secrets list.From the app repo directory:
1) Confirm which app you’re targeting
fly app listfly status -a fly.toml for app = "..."2) Validate / inspect (read-only)
fly status -a fly logs -a fly config show -a (Deploys are in High-risk operations below and require explicit user approval.)
fly deploy --verbose (more build logs)Symptoms: Bundler can’t find a platform gem like nokogiri-…-x86_64-linux during build.
Fix pattern:
Gemfile.lock includes the Linux platform used by Fly’s builder (usually x86_64-linux).bundle lock --add-platform x86_64-linux.ruby-version.(See references/rails-docker-builds.md.)
fly logs -a fly config show -a fly secrets list -a These commands can execute arbitrary code on servers or mutate production state.
Only run them when the user explicitly asks you to.
fly deploy / fly deploy --remote-onlyfly ssh console -a -C "" fly secrets set -a KEY=value See references/safety.md.
fly postgres listfly postgres attach -a fly postgres db create -a fly postgres db list -a fly postgres connect -a superfly/flyctl-actions/setup-flyctl) and run flyctl deploy.(See references/github-actions.md.)
references/safety.md: safety rules (read-only by default; ask before mutating state).references/rails-docker-builds.md: Rails/Docker/Fly build failure patterns + fixes.references/github-actions.md: Fly deploy + preview workflows.scripts/fly_app_from_toml.sh: tiny helper to print the Fly app name from fly.toml (shell-only; no ruby).共 1 个版本