Current section
Files
Jump to
Current section
Files
priv/templates/lib/app_name.ex
defmodule <%= @app_module %> do
use Application
def start(_type, _args) do
children = [
# Starts a worker by calling: <%= @app_module %>.Worker.start_link(arg)
# {<%= @app_module %>.Worker, arg}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: <%= @app_module %>.Supervisor]
Supervisor.start_link(children, opts)
end
end