zizheng

zizheng

LiveDashboard with --no-html --no-webpack

Hi all, I just generated a Phoenix project with mix phx.new myapp --no-html --no-webpack, and found out that I can still access /dashboard for the LiveDashboard.

I wonder how LiveDashboard works in this case, since I have no frontend stuff (e.g. webpack) at all. Specifically,

  • Is the content of LiveDashboard predefined somewhere (like within Phoenix) and not modifiable?
  • Does LiveDashboard work differently (e.g. bundled vs. unbundled) depending on whether or not I used --no-webpack?

Marked As Solved

LostKobrakai

LostKobrakai

LiveDashboard is a completely self contained project, which ships with its own markup/assets. Those don’t become userland code like other stuff the generators generate for you. The only userland code you’ll get is the route placed in the router, some links in the layout for html and some useful plugs. Markup/assets for the dashboard are not meant to be user editable. You can modify the dashboard only through the data passed to the plug in the router, which currently is only metrics via the MyAppWeb.Telemetry module.

Also Liked

sfusato

sfusato

That’s because LiveDashboard inlines the styles and javascript in its root template:

<%= raw(render("app.css")) %>
<script><%= raw(render("app.js")) %></script>

Last Post!

Chichi

Chichi

I think using --no-dashboard, do not include Phoenix.LiveDashboard

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a &gt; b) do {:ok, "a"} end if (a &lt; b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement