StaticBlog.Web.Server (StaticBlog v0.2.0)

Copy Markdown View Source

Builds supervisor child specs for the two Bandit servers that mix blog.server starts:

Neither server is started automatically with the application.

Summary

Functions

Return a list of child specs for both the API and preview servers.

Functions

child_specs(api_port \\ 4010, preview_port \\ 4000)

@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_port is the TCP port for the Micropub/XML-RPC server. Defaults to 4010.

  • preview_port is the TCP port for the static preview server. Defaults to 4000.

Returns

  • A list of two supervisor child specs.