Current section

Files

Jump to
kraken lib kraken application.ex
Raw

lib/kraken/application.ex

defmodule Kraken.Application do
@moduledoc false
alias Kraken.Configs
use Application
@impl true
def start(_type, _args) do
children = [
{Plug.Cowboy, scheme: :http, plug: Kraken.Api.Router, options: [port: Configs.port()]}
]
Code.put_compiler_option(:ignore_module_conflict, true)
:ok = Kraken.ProjectStart.run()
opts = [strategy: :one_for_one, name: Kraken.Supervisor]
Supervisor.start_link(children, opts)
end
end