Closed phcerdan closed 3 years ago
No worries...
1) First of all you can't have 2 processes running on the same port. 2) In real life, you will get the built web client served by either the pvpython process (--content) or via apache/nginx. 3) In that current example we assume the ws server will run on 1234 because of that
Thanks @jourdain , I am able to use npm run serve &
when localhost is 8080, and the server is in port 1234.
Thanks!
Hi @jourdain, sorry to open issues like crazy, I find it easier for learning purposes (for me and others) to ask out loud and then close it fast. But please don't feel pressure, if you cannot answer, I might find the solution elsewhere and close it myself! PS: Ne me déteste pas!
If I run
npm run serve &
and then the paraview server in the same port, I got atwisted
error (that I think makes sense).If I run the paraview server in another port, for example
--port 1234
, the client doesn't show the render inhttp://localhost:8080/
It works if I
npm run build
, and then point to thedist
folder for the paraview server.npm run build
andpvpython ./server/pvpython/pvw-server.py --virtual-env ~/.virtualenvs/my_env --port 1234 --content ./dist
Is there a way to use
npm run serve
with the external rendering?