Packages

Elixir-native host management with inspectable plans, package locks, systemd isolation, and remote bootstrap.

Current section

Files

Jump to
host_kit examples hello_phoenix lib hello_phoenix application.ex
Raw

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