๐Ÿ“ฆ juise / sherly

๐Ÿ“„ sherly.erl ยท 20 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20-module(sherly).

%% API
-export([start/0,
         stop/0]).

%% ===================================================================
%% API functions
%% ===================================================================

start() ->
    [application:start(Application) || Application <- [ranch, cowlib, cowboy]],
    application:start(sherly),
    ok.

stop() ->
    application:stop(sherly),
    [application:stop(Application) || Application <- [cowboy, cowlib, ranch]],
    ok.