Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 697 Bytes
%%%-------------------------------------------------------------------
%%% File : ybed.erl
%%% Author : <klacke@hyber.org>
%%% Description : Small embedded yaws example
%%%
%%% Created : 25 Nov 2003 by <klacke@hyber.org>
%%%-------------------------------------------------------------------
-module(ybed).
-compile(export_all).
-include("/usr/local/lib/yaws/include/yaws.hrl").
start() ->
application:start(yaws),
Id = "default",
GC = yaws_config:make_default_gconf(false, Id),
SC = #sconf{port = 8888,
servername = "foobar",
listen = {0,0,0,0},
docroot = "/tmp"},
yaws_api:setconf(GC, [[SC]]).
Jump to Line
Something went wrong with that request. Please try again.