feat(build): make GUI dev server use port 8000 everywhere
This commit is contained in:
parent
06681bfa06
commit
763bdcf0ac
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue