Skip to main content

examples/vanilla/lib/vanilla_example/application.ex

defmodule VanillaExample.Application do
  @moduledoc false

  use Application

  @impl true
  def start(_type, _args) do
    children = [
      {Phoenix.PubSub, name: VanillaExample.PubSub},
      VanillaExample.Web.Endpoint
    ]

    Supervisor.start_link(children, strategy: :one_for_one, name: VanillaExample.Supervisor)
  end

  @impl true
  def config_change(changed, _new, removed) do
    VanillaExample.Web.Endpoint.config_change(changed, removed)
    :ok
  end
end