Skip to content

docs(deployment): add Deploy to Fly.io guide#1885

Open
rohitg00 wants to merge 2 commits into
docs/deploy-railway-guidefrom
docs/deploy-fly-guide
Open

docs(deployment): add Deploy to Fly.io guide#1885
rohitg00 wants to merge 2 commits into
docs/deploy-railway-guidefrom
docs/deploy-fly-guide

Conversation

@rohitg00

@rohitg00 rohitg00 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Stacked on #1880 (Deploy to Railway), which is stacked on #1872 (Self-hosted deployment).

What changed

  • New dedicated Deploy to Fly.io how-to (next + current): pre-built Docker Hub images, a Fly-ready config.yaml (bind [::], state under /data), the engine + worker placement model (engine plus workers, each worker either in-engine or its own Fly Machine over the 6PN), file_based to external adapters (Redis/RabbitMQ/Postgres), Rust binary workers, worker manifest, hardening, RBAC, Fly Proxy TLS, health checks, observability, the /dev/kvm micro-VM limit, end-to-end verification, and a Fly-specific deployment checklist.
  • Nav: docs.json Deployment group is now Deployment + Deploy to Railway + Deploy to Fly.io, for both versions.

Depends on (merge order)

  1. docs(deployment): expand the deployment how-to with tested guidance #1872 (docs/deployment-guide)
  2. docs(deployment): add Deploy to Railway guide and group nav #1880 (docs/deploy-railway-guide)
  3. this PR

Base branch is docs/deploy-railway-guide; it will retarget to main automatically as the parents merge.

Grounded in real Fly testing

  • Engine on one Fly Machine + a separate worker on its own Fly Machine over the 6PN, verified end-to-end (/hello -> Fly Proxy -> engine -> worker -> state worker); state persisted across Machine reboots.
  • iii-sandbox (libkrun) cannot boot without /dev/kvm and reboots the Machine; binary registry workers (e.g. database) run as host processes.
  • Engine restart policy must be always (a clean config-reload exit is otherwise not restarted).

skill.md note

No skill.md committed; rendered artifacts are generated in CI (matching #1880).

Test plan

  • Sidebar shows the Deployment group with Deploy to Fly.io (both versions).
  • Deploy to Fly.io links resolve.
  • CI skill-check passes.

Summary by CodeRabbit

  • Documentation
    • Added complete Fly.io deployment guide covering configuration, engine and worker deployment, scaling, security, observability, and deployment verification.

Add a dedicated Deploy to Fly.io how-to (next + current): pre-built Docker
Hub images, a Fly-ready config.yaml (bind [::], state under /data), the
engine/worker placement model (engine plus workers, each worker either
in-engine or its own Fly Machine over the 6PN), file_based to external
adapters, Rust binary workers, worker manifest, hardening, RBAC, Fly Proxy
TLS, health checks, observability, the /dev/kvm micro-VM limit, end-to-end
verification, and a Fly-specific deployment checklist.

Group docs.json under Deployment (now Deployment, Deploy to Railway, Deploy
to Fly.io) for both versions.

Grounded in real Fly testing: engine plus a separate worker Machine over the
6PN verified end-to-end with state persisting across reboots; libkrun
(iii-sandbox) cannot boot without /dev/kvm and reboots the Machine, while
binary registry workers run as host processes.
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
iii-website Skipped Skipped Jun 19, 2026 1:38pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 38a614bf-c082-46d3-9468-f6d1b8b791fb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/deploy-fly-guide

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

skill-check — docs

2 verified, 519 skipped.

Layer Result
structure
vale
ai
render

Caution

2 in-scope rendered artifact(s) are out of date — sources this PR touches changed without re-rendering.

  • docs/next/using-iii/deploy-fly.mdx.skill.md
  • docs/using-iii/deploy-fly.mdx.skill.md
  • Re-render this branch and commit rendered artifacts

Check the box above to trigger a workflow run that re-renders and pushes a commit with the artifacts.
This will add an additional commit on this branch — run git pull to sync your local copy before making further changes.

Note

Additionally, 109 unrelated stale artifact(s) exist on main outside this PR's scope. Not blocking this PR; a maintainer should re-render them in a separate chore PR.

  • docs/0-18-0/creating-workers/channels.mdx.skill.md
  • docs/0-18-0/creating-workers/functions.mdx.skill.md
  • docs/0-18-0/creating-workers/index.mdx.skill.md
  • docs/0-18-0/creating-workers/triggers.mdx.skill.md
  • docs/0-18-0/creating-workers/workers-registry.mdx.skill.md
  • docs/0-18-0/creating-workers/workers.mdx.skill.md
  • docs/0-18-0/how-to/build-a-realtime-todo-app.mdx.skill.md
  • docs/0-18-0/how-to/schedule-cron-task.mdx.skill.md
  • docs/0-18-0/how-to/use-trigger-conditions.mdx.skill.md
  • docs/0-18-0/patterns/adapter-pattern.mdx.skill.md
  • docs/0-18-0/patterns/reactive-state-pattern.mdx.skill.md
  • docs/0-18-0/sdk-reference/browser-sdk.mdx.skill.md
  • …and 97 more (see the workflow logs)

Replace anthropomorphic 'lives' with 'is stored on' / 'is held in' in the
Fly guide (next + current) to clear Terminology.SlopMarketing errors.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (2)
docs/using-iii/deploy-fly.mdx (1)

597-597: 💤 Low value

Add trailing newline at end of file.

POSIX text files should end with a newline character.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/using-iii/deploy-fly.mdx` at line 597, The file
docs/using-iii/deploy-fly.mdx is missing a trailing newline character at the end
of the file. Add a newline character after the last line of content to ensure
the file ends with a POSIX-compliant newline, which is the standard for text
files.
docs/next/using-iii/deploy-fly.mdx (1)

597-597: 💤 Low value

Add trailing newline at end of file.

POSIX text files should end with a newline character.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/next/using-iii/deploy-fly.mdx` at line 597, The file deploy-fly.mdx is
missing a trailing newline at the end of the file, which violates POSIX text
file standards. Navigate to the very end of the file after the last character
and add a newline character to ensure the file ends with a proper line break.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/next/using-iii/deploy-fly.mdx`:
- Line 255: The SQLite URL in the Fly configuration is using an incorrect format
with a single slash after the colon, which causes the path to be interpreted as
relative instead of absolute. Change the url value from sqlite:/data/iii.db to
sqlite:///data/iii.db by adding one additional slash after the colon to properly
specify an absolute path, ensuring SQLite correctly resolves the database
location on the Fly volume.

In `@docs/using-iii/deploy-fly.mdx`:
- Line 255: The SQLite URL on line 255 uses an incorrect format with only a
single slash after the colon in the protocol. Change the database URL from
sqlite:/data/iii.db to sqlite:///data/iii.db by adding two additional slashes.
The three-slash format (sqlite:///) correctly specifies an absolute path,
whereas the single-slash format (sqlite:/) may be interpreted as a relative
path, which can cause the database to be created in an incorrect location on the
Fly volume.

---

Nitpick comments:
In `@docs/next/using-iii/deploy-fly.mdx`:
- Line 597: The file deploy-fly.mdx is missing a trailing newline at the end of
the file, which violates POSIX text file standards. Navigate to the very end of
the file after the last character and add a newline character to ensure the file
ends with a proper line break.

In `@docs/using-iii/deploy-fly.mdx`:
- Line 597: The file docs/using-iii/deploy-fly.mdx is missing a trailing newline
character at the end of the file. Add a newline character after the last line of
content to ensure the file ends with a POSIX-compliant newline, which is the
standard for text files.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: a1fc3d45-2279-4934-bff1-c5f757d49d58

📥 Commits

Reviewing files that changed from the base of the PR and between 0c25327 and e78fd35.

📒 Files selected for processing (3)
  • docs/docs.json
  • docs/next/using-iii/deploy-fly.mdx
  • docs/using-iii/deploy-fly.mdx

Comment thread docs/next/using-iii/deploy-fly.mdx
Comment thread docs/using-iii/deploy-fly.mdx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant