Commits

Fred T-H committed 8b34b76

changing to a complete OTP app

Comments (0)

Files changed (2)

+{application, chut,
+ [{description, "Chut chat core and server (http://bitbucket.org/ferd/chut)"},
+  {vsn, "0.1"},
+  {modules, [chut_client,
+             chut_app,
+             chut_sup,
+               chut_user_supersup,
+                 chut_user_sup,
+                   chut_user,
+                     chut_user_monitor,
+                     chut_user_manager,
+                       chut_user_dispatch_handler,
+                       chut_user_history_handler,
+                       chut_user_listen_handler,
+               chut_webserver_sup,
+                 chut_webserver]},
+  %% a bunch of others are possible.
+  {registered, [chut_user_supersup, chut_webserver,
+                chut_sup, chut_webserver_sup]},
+  {applications, [kernel, stdlib, sasl]},
+  {mod, {chut_app,8080}}
+ ]}.
+-module(chut_app).
+-behaviour(application).
+-export([start/2, stop/1]).
+
+start(_StartType, StartArgs) ->
+    chut_sup:start_link(StartArgs).
+
+stop(_State) ->
+    ok.