diff --git a/README.md b/README.md index 1ead4380..99fb27a8 100644 --- a/README.md +++ b/README.md @@ -467,7 +467,7 @@ Still in the `gui/` directory, build the UI bundle and run the dev server with N ### Hosting the client -You should be able to access the web interface at http://127.0.0.1:3000/index.html or your local machine's hostname. +You should be able to access the web interface at http://127.0.0.1:8000/index.html or your local machine's hostname. - If you get a `Connection Refused` error, make sure you are using the correct address and the dev server is still running. - If you get a `File not found` error, make sure you have built the UI bundle (`make bundle`) and are using the `/index.html` path diff --git a/docs/user-guide.md b/docs/user-guide.md index e6d55db9..090adc8b 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -615,7 +615,7 @@ If you are running the GUI separately, such as when using nginx or for developme - TCP/80 for the GUI using nginx without a container - TCP/8000 for the GUI using the nginx container -- TCP/3000 for the GUI dev server +- TCP/8000 for the GUI dev server #### Error: name 'cmd' is not defined diff --git a/gui/esbuild.js b/gui/esbuild.js index ae41211b..d81e507a 100644 --- a/gui/esbuild.js +++ b/gui/esbuild.js @@ -31,8 +31,8 @@ const config = { sourcemap: true, }; -if(watch) { - const copyArray = (files) => files.map(file => +if (watch) { + const copyArray = (files) => files.map(file => copy({ resolveFrom: 'cwd', assets: { diff --git a/gui/serve.js b/gui/serve.js index 9901d88d..7fcfa29e 100644 --- a/gui/serve.js +++ b/gui/serve.js @@ -6,7 +6,7 @@ import { join } from 'path'; const { env } = process; const host = mustDefault(env.ONNX_WEB_DEV_HOST, '127.0.0.1'); -const port = mustDefault(env.ONNX_WEB_DEV_PORT, '3000'); +const port = mustDefault(env.ONNX_WEB_DEV_PORT, '8000'); const root = process.cwd(); const portNum = parseInt(port, 10);