jenot/lib/jenot/application.ex
2024-11-18 22:36:26 +01:00

16 lines
325 B
Elixir

defmodule Jenot.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
Jenot.Repo,
{Bandit, plug: Jenot.Web, scheme: :http, port: 4000}
]
opts = [strategy: :one_for_one, name: Jenot.Supervisor]
Supervisor.start_link(children, opts)
end
end