2021-06-22 01:55:16 +00:00
|
|
|
defmodule Wabanex.Application do
|
|
|
|
@moduledoc false
|
|
|
|
|
|
|
|
use Application
|
|
|
|
|
|
|
|
def start(_type, _args) do
|
|
|
|
children = [
|
2022-05-03 16:19:39 +00:00
|
|
|
Wabanex.PromEx,
|
2021-06-22 01:55:16 +00:00
|
|
|
Wabanex.Repo,
|
|
|
|
WabanexWeb.Telemetry,
|
|
|
|
{Phoenix.PubSub, name: Wabanex.PubSub},
|
2024-09-22 18:56:27 +00:00
|
|
|
{DNSCluster,
|
|
|
|
query: Application.get_env(:wabanex, :dns_cluster_query) || :ignore,
|
|
|
|
log: :info,
|
|
|
|
resolver: Application.get_env(:wabanex, :dns_cluster_resolver) || DNSCluster.Resolver},
|
2021-06-22 01:55:16 +00:00
|
|
|
WabanexWeb.Endpoint
|
|
|
|
]
|
|
|
|
|
|
|
|
opts = [strategy: :one_for_one, name: Wabanex.Supervisor]
|
|
|
|
Supervisor.start_link(children, opts)
|
|
|
|
end
|
|
|
|
|
|
|
|
def config_change(changed, _new, removed) do
|
|
|
|
WabanexWeb.Endpoint.config_change(changed, removed)
|
|
|
|
:ok
|
|
|
|
end
|
|
|
|
end
|