Current section

Files

Jump to
combo_new templates saas lib core supervisor.ex
Raw

templates/saas/lib/core/supervisor.ex

defmodule DemoLT.Core.Supervisor do
@moduledoc false
use Supervisor
@spec start_link(term()) :: Supervisor.on_start()
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl Supervisor
def init(_arg) do
children = [
DemoLT.Core.Repo,
# Start the Finch HTTP client for sending emails
{Finch, name: DemoLT.Core.Finch}
]
Supervisor.init(children, strategy: :one_for_one)
end
end