Starting inets/httpd with custom application

Posted by williamstw on Stack Overflow See other posts from Stack Overflow or by williamstw
Published on 2010-03-29T14:11:43Z Indexed on 2010/03/29 14:13 UTC
Read the original article Hit count: 370

Filed under:

I've got a module that I'm attempting to turn into a proper OTP application. Currently, the module has start/0 which starts a genserver which supplies configuration data read from a config file. It then calls inets:start(httpd,config:lookup(httpd_conf)). I gather that I need to move the starting of these out into the .app file's (application list) but I'm not sure how to get my config data into the inets:start function (or pass in httpd)?

Thanks, --tim

© Stack Overflow or respective owner

Related posts about erlang