Foundry.PreviewServer (foundry v0.1.3)

Copy Markdown

Manages a dev server subprocess for live preview of reference projects.

Spawns and monitors a server process (e.g., mix phx.server) from a manifest configuration. Provides start/stop events accessible via Foundry Studio UI.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_status()

preview_base_url(project_root)

start_link(config)

start_preview(project_root)

stop_preview()