Basic template for mounting an arbitrary HTML page to an Urbit ship v.0.8.0 or higher.
As of Urbit v0.8.0, the eyre vane 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.
- Clone this repo.
- Copy everything in urbit/app to your Urbit ship's pier, in its respective /app folder.
- By default, it will mount
/staticsite/index.html
to[yourship].dev/~staticsite
. To change this, amend the "staticsite" name to whatever you like.- Ensure you change the .hoon filename, the "staticsite" folder name, and all instances of "staticsite" in the .hoon file. See the comments in
staticsite.hoon
for naming the endpoint, too.
- Ensure you change the .hoon filename, the "staticsite" folder name, and all instances of "staticsite" in the .hoon file. See the comments in
|commit %home
and|start your-app-name
.- e m b r a c e g e o c i t i e s
- Commenting out examples of different file types
- Adding in examples of mapping multiple files of the same type to a single variable.
Thank you to ~tacryt-socryp, ~palfun-folsup and ~novlud-padtyv for mentoring. This is a basic package, but a new territory!