Commits

Anonymous committed 2453e3c

in new apps, put dispatch in separate conf file

Comments (0)

Files changed (2)

priv/skel/priv/dispatch.conf

+{[], skel_resource, []}.

priv/skel/src/skel_sup.erl

 %% @doc supervisor callback.
 init([]) ->
     Ip = case os:getenv("WEBMACHINE_IP") of false -> "0.0.0.0"; Any -> Any end,   
-    Dispatch = [{[], skel_resource, []}],
+    {ok, Dispatch} = file:consult("priv/dispatch.conf"),
     WebConfig = [
 		 {ip, Ip},
 		 {port, 8000},