Current section
Files
Jump to
Current section
Files
examples/hello_phoenix/lib/hello_phoenix/application.ex
defmodule HelloPhoenix.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
{Phoenix.PubSub, name: HelloPhoenix.PubSub},
HelloPhoenixWeb.Endpoint
]
opts = [strategy: :one_for_one, name: HelloPhoenix.Supervisor]
Supervisor.start_link(children, opts)
end
@impl true
def config_change(changed, _new, removed) do
HelloPhoenixWeb.Endpoint.config_change(changed, removed)
:ok
end
end