Sayfa.DevServer.Supervisor (Sayfa v0.5.0)

Copy Markdown View Source

Supervisor for the Sayfa dev server components.

Starts in order: Rebuilder → Watcher → Cowboy HTTP server. This supervisor is started by mix sayfa.serve, not in application.ex.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the dev server supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

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

Starts the dev server supervisor.

Options

  • :config — keyword list of build options
  • :port — HTTP port (default: 4000)
  • :output_dir — directory to serve (default: "dist")
  • :content_dir — content directory to watch (default: "content")