Open bmkuter opened 1 year ago
@bmkuter you don't have to do the two terminal thing – the only purpose the npm run dev
command serves is it compiles your static/bundle.js
so that once you start the server, the site is serving the compiled javascript code.
I recommend adding a
"build": "webpack --progress",
command to your package.json
, and then calling that in your dockerfile (RUN npm run build-server
), before starting the server.
@bmkuter you don't have to do the two terminal thing – the only purpose the
npm run dev
command serves is it compiles yourstatic/bundle.js
so that once you start the server, the site is serving the compiled javascript code.I recommend adding a
"build": "webpack --progress",
command to yourpackage.json
, and then calling that in your dockerfile (RUN npm run build-server
), before starting the server.
EDIT: It seems that what happened to me was just that some environment variables were not set, and the system didn't tell that - maybe because the messages got lost somehow, after editing package.json?
Anyway, after making a new file that had all the environment variables set directly and using "source" on that file, I managed to launch the server.
I've been trying to setup vault-ai within a docker container, and I'm able to install everything with latest Go, Node v19, poppler.
After resolving the "source" issue mentioned here, I progressed to the actual install, start, and run commands. With two docker terminals running, one is listening on :8100 and the other is running
npm run dev
. However when I visit http://localhost:8100, I get a problem loading the page.This seems like a similar issue from this comment.
This is the output of my
npm run dev
:Anyone have any tips?