Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
simple launcher script to start an embedded yaws app
-module(launch).
%% API.
-export([start/0]).
%% API.
start() ->
{ok, Cwd} = file:get_cwd(),
Docroot = Cwd ++ "/webapp",
Sconf = [
{port,8080},
{docroot, Docroot},
{listen, {0,0,0,0}}
],
ok = yaws:start_embedded(Docroot, Sconf),
ok = application:start(myapp),
ok = sync:go().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.