Current section

Files

Jump to
sorcery lib application.ex
Raw

lib/application.ex

defmodule Sorcery.Application do
@moduledoc false
use Application
@impl true
def start(_start_type, _start_args) do
children = if Mix.env() == :test do
[
{Src.PortalServers.Postgres, name: Src.PortalServers.Postgres},
{Src, []},
Sorcery.Repo
]
else
[]
end
opts = [strategy: :one_for_one, name: Sorcery.Supervisor]
Supervisor.start_link(children, opts)
end
end