diff options
author | Magnus Ahltorp <map@kth.se> | 2014-10-25 02:08:25 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2014-10-25 02:08:25 +0200 |
commit | f0c78cf6c6caedffd1069b4c41e41ec8ca7fb1c7 (patch) | |
tree | c64fee211fd01f5a65d72236c4d37e342bb724ef /src/catlfish_sup.erl | |
parent | 574f96fba9fd01ec9725c5509f02ad13d8ab8793 (diff) |
Move internal HTTP APIs to mochiweb.
Diffstat (limited to 'src/catlfish_sup.erl')
-rw-r--r-- | src/catlfish_sup.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/catlfish_sup.erl b/src/catlfish_sup.erl index abdac44..0b6c306 100644 --- a/src/catlfish_sup.erl +++ b/src/catlfish_sup.erl @@ -16,7 +16,7 @@ init([]) -> {cacertfile, application:get_env(catlfish, https_cacertfile, none)}], Servers = lists:map(fun (Config) -> - {IpAddress, Port, Module} = Config, + {ChildName, IpAddress, Port, Module} = Config, {ok, IPv4Address} = inet:parse_ipv4strict_address(IpAddress), WebConfig = [{ip, IPv4Address}, @@ -24,11 +24,12 @@ init([]) -> {ssl, true}, {ssl_opts, SSLOptions} ], - {catlfish_web, + {ChildName, {catlfish_web, start, [WebConfig, Module]}, permanent, 5000, worker, dynamic} end, application:get_env(catlfish, https_servers, [])), + lager:debug("Starting servers ~p", [Servers]), {ok, {{one_for_one, 3, 10}, Servers}}. |