Skip to content

Quickstart: serve a dedicated directory, not the home directory - #285

Open
alexleventer wants to merge 3 commits into
mainfrom
growth/2026-11-19-quickstart-serve-dir
Open

alexleventer wants to merge 3 commits into
mainfrom
growth/2026-11-19-quickstart-serve-dir

Conversation

@alexleventer

Copy link
Copy Markdown
Contributor

The quickstart's web server step runs sprite exec -- python -m http.server 8080, which serves the current directory, /home/sprite. The next step tells the reader to run sprite config update --url-auth public. Following both exactly publishes the home directory: /.zsh_history and /.claude.json return 200, and the .claude, .codex, .cursor, .gemini and .grok config directories are listed.

Fix:

  • write a one-line ~/site/index.html and serve that directory with --directory /home/sprite/site;
  • add -u so the server's startup line and request log show while it runs (stdout is buffered without a TTY, so today nothing prints until Ctrl+C);
  • say in the --url-auth public box that anyone with the URL sees whatever port 8080 serves.

Tested: docs-only change. I haven't run the new commands on a live Sprite; the bash -c "… > …" form is the same one the "Create and read files" step above already uses, and --directory and -u are standard http.server / python flags.

The web server step ran python -m http.server from /home/sprite, so
making the URL public served shell history and agent config files.
Serve ~/site instead, unbuffer the server's output with -u, and say
what --url-auth public exposes.
@mintlify

mintlify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
fly-io 🟢 Ready View Preview Nov 20, 2026, 1:27 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@mintlify

mintlify Bot commented Nov 19, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
fly-io 🟡 Building – Nov 19, 2026, 4:27 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@kcmartin kcmartin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Tested on a Sprite: the page serves and nothing outside ~/site does.

This branch was successfully deployed

1 active deployment
staging — a4f37d21 Deployed Nov 20, 2026 by mintlify[bot]
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.

2 participants