cover/Elixir.WalletWeb.Application.html

1 defmodule WalletWeb.Application do
2 # See https://hexdocs.pm/elixir/Application.html
3 # for more information on OTP Applications
4 @moduledoc false
5
6 use Application
7
8 @impl true
9 def start(_type, _args) do
10
:-(
children = [
11 WalletWeb.Telemetry,
12 WalletWeb.Repo,
13
:-(
{DNSCluster, query: Application.get_env(:wallet_web, :dns_cluster_query) || :ignore},
14 {Phoenix.PubSub, name: WalletWeb.PubSub},
15 # Start the Finch HTTP client for sending emails
16 {Finch, name: WalletWeb.Finch},
17 # Start a worker by calling: WalletWeb.Worker.start_link(arg)
18 # {WalletWeb.Worker, arg},
19 # Start to serve requests, typically the last entry
20 WalletWeb.Endpoint
21 ]
22
23 # See https://hexdocs.pm/elixir/Supervisor.html
24 # for other strategies and supported options
25
:-(
opts = [strategy: :one_for_one, name: WalletWeb.Supervisor]
26
:-(
Supervisor.start_link(children, opts)
27 end
28
29 # Tell Phoenix to update the endpoint configuration
30 # whenever the application is updated.
31 @impl true
32 def config_change(changed, _new, removed) do
33
:-(
WalletWeb.Endpoint.config_change(changed, removed)
34 :ok
35 end
36 end
Line Hits Source