Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## web_server.erl
- -module(web_server).
- -compile([debug_info]).
- -export([start/0,start/1]).
- start() -> start(9999).
- start(Port) ->
- mochiweb_http:start([{port, Port}, {loop, fun dispatch_requests/1}]).
- ## Started with
- erl -boot start_sasl -s web_server start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement