Builds supervisor child specs for the two Bandit servers that
mix blog.server starts:
- API server (
StaticBlog.Web.Router) on port 4010. - Preview server (
StaticBlog.Web.PreviewRouter) on port 4000.
Neither server is started automatically with the application.
Summary
Functions
Return a list of child specs for both the API and preview servers.
Functions
@spec child_specs(non_neg_integer(), non_neg_integer()) :: [Supervisor.child_spec()]
Return a list of child specs for both the API and preview servers.
Arguments
api_portis the TCP port for the Micropub/XML-RPC server. Defaults to4010.preview_portis the TCP port for the static preview server. Defaults to4000.
Returns
- A list of two supervisor child specs.