Local server

reading the wiki on this machine

wiki serve builds the site, serves it at 127.0.0.1 on port 8787, and opens a browser at it.[1] It is also what wiki does when it is given no command at all.[2] How the site itself is made is described on Site.

Root

The server shows the whole project, not only the site.[3] A page can link to any file in the project, and a browser cannot follow a link above the folder it is served from.[4]

That means anything that can reach the server can read every file in the project.[3] For that reason, it answers only on this machine.[5]

Sources

Code, settings and markdown files open as text in the browser instead of downloading, across 38 common file types.[6] Anything else, such as the site's own pages and pictures, is served as it normally would be.[6] A file named only .env has no suffix, so it is sent as a download.[6]

Freshness

The server never rebuilds the site, so a page edited while it runs appears after wiki build and a reload.[7] Nothing the server sends may be cached, so a rebuilt page appears on the next reload.[8] The addresses of the stylesheet and the script also change whenever their contents do, so even a tab holding an old copy picks up the new one.[9]

Errors

A request answered with a success status is not logged; redirects and failures are.[10] If the port is already in use, the server says so, names --port as the way to pick another, and exits with 2.[11]

Last updated 14 September 2026259 wordsabout 2 minutes to read11 sources cited0 claims with no source