1
0
Fork 0

feat(build): make GUI dev server use port 8000 everywhere

This commit is contained in:
Sean Sube 2023-02-17 23:15:07 -06:00
parent 06681bfa06
commit 763bdcf0ac
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
4 changed files with 5 additions and 5 deletions

View File

@ -467,7 +467,7 @@ Still in the `gui/` directory, build the UI bundle and run the dev server with N
### Hosting the client ### 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 `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 - 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

View File

@ -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/80 for the GUI using nginx without a container
- TCP/8000 for the GUI using the nginx 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 #### Error: name 'cmd' is not defined

View File

@ -6,7 +6,7 @@ import { join } from 'path';
const { env } = process; const { env } = process;
const host = mustDefault(env.ONNX_WEB_DEV_HOST, '127.0.0.1'); 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 root = process.cwd();
const portNum = parseInt(port, 10); const portNum = parseInt(port, 10);