Enable live dashboard in production

Includes extras to monitor ecto repos.
This commit is contained in:
Claudio Ortolina
2024-11-23 19:26:54 +00:00
parent bbfafbe519
commit f157fbadee
4 changed files with 10 additions and 2 deletions
+4 -2
View File
@@ -63,9 +63,11 @@ defmodule MusicLibraryWeb.Router do
import Phoenix.LiveDashboard.Router
scope "/dev" do
pipe_through :browser
pipe_through [:browser, :require_login]
live_dashboard "/dashboard", metrics: MusicLibraryWeb.Telemetry
live_dashboard "/dashboard",
metrics: MusicLibraryWeb.Telemetry,
ecto_repos: [MusicLibrary.Repo]
end
end
end