Packages

Provides `mix needle.new.*` tasks to bootstrap new Phoenix projects.

Current section

Files

Jump to
needle_new templates needle_single lib web_lib supervisor.ex
Raw

templates/needle_single/lib/web_lib/supervisor.ex

defmodule <%= inspect @web_module %>.Supervisor do
@moduledoc false
use Supervisor
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
<%= inspect @web_module %>.Telemetry,
<%= inspect @web_module %>.Endpoint
]
Supervisor.init(children, strategy: :one_for_one)
end
end