Packages

dev watcher that auto compiles and reloads modules

Current section

Files

Jump to
reup src reup_sup.erl
Raw

src/reup_sup.erl

-module(reup_sup).
-behaviour(supervisor).
-define(CHILD(I, Type, Args), {I, {I, start_link, Args}, permanent, 5000, Type, [I]}).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Procs = [?CHILD(reup_watcher, worker, [])],
{ok, {{one_for_one, 100, 1}, Procs}}.