Skip to content

Dashboard static files 404 unless the server runs from the repo root #79

Description

@chizy7

Context

handleStaticFile resolves the static root as the relative path visualization/static, so it depends entirely on the process working directory. Running ./pinnaclemm --enable-visualization from build/ (the documented way) makes every static request 404, including /index.html. That is why the docs tell users to open the dashboard HTML straight from the filesystem instead of from the server.

What to do

  • Resolve the static directory relative to the executable location, with a --static-dir flag to override it.
  • Fall back to the current relative path if neither resolves, and log the directory actually being served at startup.
  • Update the README and visualization docs so the dashboard is opened from http://localhost:<api-port>/ once this works.

Notes

Keep this coordinated with the path traversal fix in #76 since both touch the same function.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions