dream-serve serves a static HTML site. It injects a small script which reloads Web pages when they are updated in the file system. This makes it great for static site development, including odoc documentation pages, and for viewing Bisect_ppx coverage reports across multiple test runs.
Published: 15 May 2023
dream-serve is a very simple server for static sites. It reloads your browser when the site changes.
It's good for developing docs, streamlining coverage reports, and so forth. It works by injecting a script into HTML, which opens a WebSocket back to the server. The server uses the WebSocket to tell the browser when to reload.
opam install dream-serve dream-serve ./my/site
To choose a port number,
dream-serve ./my/site -p 9090