Skip to content

Deploy ProPR from the Fly.io dashboard (Launch an App → From GitHub), with first-visit setup #3827

Done

Description

@integry

Goal

Someone can deploy ProPR from the Fly.io dashboard with Launch an App → From GitHub: pick a fork of ProPR (or the public repo) and Fly builds and deploys it, without installing flyctl or the propr CLI. Every remaining setup step happens in ProPR's own UI on first visit. The result is the same instance propr deploy fly produces: idle shutdown with wake, the Sprites or Fly Machines runtime, and it fits the Free Plan.

Why

  • It's the lowest-friction path for Hacksgiving and for Fly's Free Plan users.
  • Today's path needs a terminal, flyctl and propr deploy fly, which:
    • generates the secrets (SYSTEM_TASK_SECRET, MCP keys, and so on);
    • creates the volume;
    • writes the GitHub App credentials as Fly secrets;
    • configures idle stop.
  • A dashboard launch can't run any of that.

Step 0: verify how the dashboard flow behaves (record it in the PR)

Fly's docs don't describe the dashboard's "From GitHub" flow; they only cover fly launch, fly.toml and GitHub Actions. Try it on a throwaway fork in a personal org, and stay within the Free Plan (3 Machines, stopped ones included). Find out:

  • whether it uses a committed fly.toml (which path), the Dockerfile, [build] args, [mounts] (does it create the volume?), [[vm]] size and [http_service] auto-stop/auto-start;
  • whether it lets the user enter secrets or env at launch;
  • whether it sets up deploy-on-push for the branch, and how a later update reaches the instance;
  • how it picks the app name, region and org.

Design around what it actually does. Delete the throwaway app, volume and fork afterwards.

Required

  1. A committed launch config: a root fly.toml, or the path the dashboard reads, that builds the control-plane image from the repo's Dockerfile and mounts the data volume. It uses the same process layout, health check and idle-stop settings as propr deploy fly (generate both from one source, so they can't drift). It contains no secrets and no account-specific values.
  2. Secrets generated at first boot: when a value propr deploy fly normally generates is missing (SYSTEM_TASK_SECRET, MCP encryption key and instance id, webhook secret, and the rest of flyGeneratedSecrets.ts), the instance generates it once, stores it on the volume with mode 0600, and reuses it on every boot. Fly secrets, when present, still win, so existing deploys don't change. Never log the values.
  3. A first-visit setup wizard while the instance is unconfigured. Its address must not be guessable, or it must be bound to a one-time setup code shown in the Machine's logs (fly logs). That way a stranger who finds the URL first can't claim it.
    • The GitHub App: create it with GitHub's App manifest flow, with the callback and webhook URLs filled in from the app's *.fly.dev URL. Store the returned credentials on the volume, or as Fly secrets if a user-provided Fly token allows it. Then install the App on the chosen repos.
    • The first admin: whoever completes the wizard and signs in with GitHub.
    • Runtime: a choice of Sprites (paste a Sprites token) or Fly Machines (paste a Fly token scoped to a new agent app, with clear instructions for attenuating it), or Docker-less local-only mode. Validate each before saving.
    • Model provider credentials: entered the same way Settings handles them today.
  4. Idle shutdown works without the CLI. Whatever propr deploy fly configures for idle stop and wake (the stop token, auto_start) is either in fly.toml or set up by the wizard. Idle stop is never on by default (unchanged policy).
  5. Updates: document how an instance launched from GitHub gets new versions: deploy-on-push from the fork, a "sync fork" step, or a ProPR update notice. Migrations run on boot as they do now.
  6. Docs: a "Deploy from the Fly dashboard" section in docs/docs/tutorials/setup-fly.md, with screenshots of the flow and a comparison with propr deploy fly. Also a "Launch on Fly" link or button in the README if Fly supports one.

Acceptance

  • A fresh fork launched from the Fly dashboard, in an empty personal org on the Free Plan, reaches the setup wizard. The wizard creates and installs the GitHub App. A labeled issue then produces a PR on both Sprites and Fly Machines.
  • The instance survives a restart and an idle stop followed by a wake, with the same secrets and the same GitHub App.
  • An existing propr deploy fly instance redeployed from this branch is unchanged: its Fly secrets still win and no wizard appears.
  • Unit tests cover:
    • generating secrets once and persisting them;
    • Fly secrets taking precedence over generated ones;
    • wizard access control: the setup code, a single claim, and the wizard closing once setup is done;
    • storing the manifest-flow credentials.
  • Evidence goes in the PR description: run links, the dashboard steps actually used, and screenshots.

Not queued yet: start once the current epic gap PRs (#3825, #3826) are merged.

Activity

  1. propr-dev commented on Nov 27, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3827/claude-opus-5-5-deploy-propr-from-the-fly-20261127-1654-htm
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3827-20261127-1654-claude-opus-5-5-htm

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3852, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions