Canvas sites
The canvas section lists the sites to publish. A bare path mounts a directory at
/; the long form sets an explicit path for a sub-path (handy for a public
site plus an admin or reviewer area). How much storage the slice has for them is set in
the slice's shape.
TypeDefaultMeaning
- Type
- path | map
- Default
- none
- Meaning
- A bare path mounts at
/. Long form{ dir, path }mountsdiratpath.
canvas:
sites:
- ./canvas/public # mounted at /
- dir: ./canvas/reviewer
path: /reviewer # mounted at /reviewerroute is the old spelling of path.
It still parses and is rewritten for you, so an existing Driftfile keeps applying unchanged.
A site the file does not list is left serving and named in the report apply prints at
the end of a run. Nothing prunes it — and no drift verb removes a site today, which
the report says rather than offering a command that does not exist.