Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 537 Bytes
start() ->
{ok, spawn(?MODULE, run, [])}.
run() ->
Id = "embedded",
GconfList = [{id, Id}],
Docroot = "/tmp",
SconfList = [{port, 8888},
{servername, "foobar"},
{listen, {0,0,0,0}},
{docroot, Docroot}],
{ok, SCList, GC, ChildSpecs} =
yaws_api:embedded_start_conf(Docroot, SconfList, GconfList, Id),
[supervisor:start_child(ybed_sup, Ch) || Ch <- ChildSpecs],
yaws_api:setconf(GC, SCList),
{ok, self()}.
Jump to Line
Something went wrong with that request. Please try again.