Cherry.Serve.Watcher (cherry v0.6.0)

Copy Markdown View Source

Watches the site's inputs and rebuilds on change, debounced.

Events under the output directory are ignored (our own writes must not retrigger builds). A broken edit prints its diagnostics and keeps the last good output serving; the next successful build broadcasts a reload.

Summary

Functions

Why live reload is off when the watcher started but sees nothing.

Returns a specification to start this module under a supervisor.

Why live reload is off, with the platform's remedy.

Functions

blind_message()

@spec blind_message() :: String.t()

Why live reload is off when the watcher started but sees nothing.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

unavailable_message()

@spec unavailable_message() :: String.t()

Why live reload is off, with the platform's remedy.