Hi there,
First of all, thank you for all the great projects for handling and using meshes in all their various forms - they continue to be super helpful.
I am in the process of creating a “simple” mesh visualisation app using Trame’s localView.
I am able to successfully run it in ‘single user’ mode, by naively invoking server.start()
, which lets me view the UI I created using trame’s widgets.
I am in the process of packaging the application up so that I can host it and have multiple users connect, each to their own session.
I am using the example provided here as inspiration.
My application boots up successfully with no errors in the apache logs nor the launcher logs.
My browser is stuck at the screen with a spinning circle and a Loading
message.
Inspecting the network requests made by the browser, I can see every request succeeding as expected, all the way up to the 101
response that establishes the websocket connection.
The next request is for the __trame_vtklocal/js/style.css
file - it returns a 200, but the response body is just the exact same content as the main index.html
.
I looked into the apache2 config, and can see:
<Directory /deploy/server/www>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
FallbackResource /index.html
</Directory>
which led me to understand that the request was failing to find the resource, and was therefore falling back to the html file.
I looked inside the /deploy/server/www
directory and could see subdirectories for the __trame_vtk
and __trame_vuetify3
modules, containing their web assets (js, css, fonts).
I would have expected to also see a directory for __trame_vtklocal
then - and I think its absence might explain my issues loading the stylesheets.
Is there something specific I should be doing in the setup and configuration of my Docker container to enable trame-localview to work?