Skip to content

Instantly share code, notes, and snippets.

@stleon
Last active November 13, 2018 08:26
Show Gist options
  • Save stleon/f0805fdbaa91acecab1ce7af1c6f2400 to your computer and use it in GitHub Desktop.
Save stleon/f0805fdbaa91acecab1ce7af1c6f2400 to your computer and use it in GitHub Desktop.
http server
erl -eval 'Dir = filename:absname(""),
ok = inets:start(),
{ok, Pid} = inets:start(httpd, [{port, 3333},
{server_name, "test_server"},
{server_root, Dir},
{document_root, Dir}]),
Info = httpd:info(Pid),
io:format("~p", [Info]).'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment