This commit is contained in:
2024-06-02 13:31:19 +02:00
parent 9d547bcdf2
commit 443081e086
67 changed files with 623 additions and 4282 deletions

View File

@ -8,20 +8,16 @@ defmodule SomethingErlang.Application do
@impl true
def start(_type, _args) do
children = [
{Registry, [name: SomethingErlang.Registry.Grovers, keys: :unique]},
{DynamicSupervisor, [name: SomethingErlang.Supervisor.Grovers, strategy: :one_for_one]},
# Start the Telemetry supervisor
SomethingErlangWeb.Telemetry,
# Start the Ecto repository
SomethingErlang.Repo,
# Start the PubSub system
{DNSCluster, query: Application.get_env(:something_erlang, :dns_cluster_query) || :ignore},
{Phoenix.PubSub, name: SomethingErlang.PubSub},
# Start Finch
# Start the Finch HTTP client for sending emails
{Finch, name: SomethingErlang.Finch},
# Start the Endpoint (http/https)
SomethingErlangWeb.Endpoint
# Start a worker by calling: SomethingErlang.Worker.start_link(arg)
# {SomethingErlang.Worker, arg}
# {SomethingErlang.Worker, arg},
# Start to serve requests, typically the last entry
SomethingErlangWeb.Endpoint
]
# See https://hexdocs.pm/elixir/Supervisor.html