Notice: This is nowhere near current and should only be considered for the purpose of mounting static HTML pages in archival subnetworks (eg. galaxies, stars, and planets pinned to Vere version 0.10.0). As of November 2023, no such archival project exists, though one could certainly imagine it.
Basic template for mounting a static website (HTML+CSS+JS) to an Urbit ship v.0.10.0 or higher.
As of Urbit v0.8.0, the eyre vane (HTTP server) of Arvo no longer automatically mounts everything in the /web
folder. It now works through the declaration of endpoints.
This is a boilerplate for that, using a static Gall agent, current as of v.0.10.0+.
This boilerplate will mount everything in /app/staticsite to "/~staticsite" on your ship's HTTP server. If your ship is ~sampel-palnet
and you have enabled DNS proxying, your site will be available on http://sampel-palnet.arvo.network/~staticsite
.
You can also set any domain name to your ship's IP address, if you prefer.
staticsite.hoon
and the staticsite
folder, for the app; and all mentions of ~staticsite
in the former staticsite.hoon
for the endpoint. Feel free to add your HTML, CSS, and JS files to the folder when ready.urbit/app
to your Urbit ship's pier, within its respective /app folder.|commit %home
and |start %your-app-name
.This was one of my first projects on Urbit. Thank you to ~tacryt-socryp
, ~palfun-folsup
and ~novlud-padtyv
for mentoring.