You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/application.ex

22 lines
469 B
Elixir

defmodule Plausible.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
Plausible.Repo,
PlausibleWeb.Endpoint
]
opts = [strategy: :one_for_one, name: Plausible.Supervisor]
{:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
Supervisor.start_link(children, opts)
end
def config_change(changed, _new, removed) do
PlausibleWeb.Endpoint.config_change(changed, removed)
:ok
end
end