restart without ecto

This commit is contained in:
2026-03-16 12:08:09 -06:00
parent 24d9c0ce0f
commit 866326e71d
864 changed files with 942 additions and 432 deletions

View File

@@ -9,7 +9,6 @@ defmodule CobblemonUi.Application do
def start(_type, _args) do
children = [
CobblemonUiWeb.Telemetry,
CobblemonUi.Repo,
{DNSCluster, query: Application.get_env(:cobblemon_ui, :dns_cluster_query) || :ignore},
{Phoenix.PubSub, name: CobblemonUi.PubSub},
# Start a worker by calling: CobblemonUi.Worker.start_link(arg)

View File

@@ -1,3 +0,0 @@
defmodule CobblemonUi.Mailer do
use Swoosh.Mailer, otp_app: :cobblemon_ui
end

View File

@@ -1,5 +0,0 @@
defmodule CobblemonUi.Repo do
use Ecto.Repo,
otp_app: :cobblemon_ui,
adapter: Ecto.Adapters.Postgres
end

View File

@@ -7,7 +7,7 @@ defmodule CobblemonUiWeb.Endpoint do
@session_options [
store: :cookie,
key: "_cobblemon_ui_key",
signing_salt: "aWbGGE0a",
signing_salt: "B3/M7bnw",
same_site: "Lax"
]
@@ -33,7 +33,6 @@ defmodule CobblemonUiWeb.Endpoint do
socket "/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket
plug Phoenix.LiveReloader
plug Phoenix.CodeReloader
plug Phoenix.Ecto.CheckRepoStatus, otp_app: :cobblemon_ui
end
plug Phoenix.LiveDashboard.RequestLogger,

View File

@@ -38,7 +38,6 @@ defmodule CobblemonUiWeb.Router do
pipe_through :browser
live_dashboard "/dashboard", metrics: CobblemonUiWeb.Telemetry
forward "/mailbox", Plug.Swoosh.MailboxPreview
end
end
end

View File

@@ -52,29 +52,6 @@ defmodule CobblemonUiWeb.Telemetry do
unit: {:native, :millisecond}
),
# Database Metrics
summary("cobblemon_ui.repo.query.total_time",
unit: {:native, :millisecond},
description: "The sum of the other measurements"
),
summary("cobblemon_ui.repo.query.decode_time",
unit: {:native, :millisecond},
description: "The time spent decoding the data received from the database"
),
summary("cobblemon_ui.repo.query.query_time",
unit: {:native, :millisecond},
description: "The time spent executing the query"
),
summary("cobblemon_ui.repo.query.queue_time",
unit: {:native, :millisecond},
description: "The time spent waiting for a database connection"
),
summary("cobblemon_ui.repo.query.idle_time",
unit: {:native, :millisecond},
description:
"The time the connection spent waiting before being checked out for the query"
),
# VM Metrics
summary("vm.memory.total", unit: {:byte, :kilobyte}),
summary("vm.total_run_queue_lengths.total"),