Something went wrong. Try again.
annot.at is a service for syncing static websites, such as blogs, to atproto and standard.site annot.at
elixir atproto standardsite
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738defmodule AnnotAt.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false
use Application
@impl Application def start(_type, _args) do :logger.add_handler(:my_sentry_handler, Sentry.LoggerHandler, %{ config: %{metadata: [:file, :line]} })
children = [ AnnotAtWeb.Telemetry, AnnotAt.Vault, AnnotAt.Repo, {DNSCluster, query: Application.get_env(:annot_at, :dns_cluster_query) || :ignore}, {Phoenix.PubSub, name: AnnotAt.PubSub}, {Latch, Application.fetch_env!(:annot_at, AnnotAt.Latch)}, AnnotAtWeb.Endpoint ]
# See https://hexdocs.pm/elixir/Supervisor.html # for other strategies and supported options opts = [strategy: :one_for_one, name: AnnotAt.Supervisor] Supervisor.start_link(children, opts) end
# Tell Phoenix to update the endpoint configuration # whenever the application is updated. @impl Application def config_change(changed, _new, removed) do AnnotAtWeb.Endpoint.config_change(changed, removed) :ok endend