legendary-doc-site/apps/admin/kaffy/lib/kaffy/application.ex
2020-07-27 20:28:41 +00:00

15 lines
300 B
Elixir

defmodule Kaffy.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
{Kaffy.Scheduler.Supervisor, []},
Kaffy.Cache.Client
]
opts = [strategy: :one_for_one, name: Kaffy.Supervisor]
Supervisor.start_link(children, opts)
end
end