defmodule Fictitious.Application do @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = Application.get_env(:fictitious, :children) # See https://hexdocs.pm/elixir/Supervisor.html # for other strategies and supported options opts = [strategy: :one_for_one, name: Fictitious.Supervisor] Supervisor.start_link(children, opts) end end