Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

simple launcher script to start an embedded yaws app

View launch.erl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
-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.