Update of debug section (#16312)

- npm script was changed, command is different as well as port
This commit is contained in:
Ivan Curkovic 2022-12-10 11:08:51 +01:00 committed by GitHub
parent aa455ffb9a
commit 1879c281fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -39,15 +39,15 @@ Assuming your app runs on the default port, start your UI app and then run:
```console ```console
$ cd ui $ cd ui
$ npm start $ npm run dev
``` ```
This starts a development server that listens on port 3000. This starts a development server that listens on port 5173.
You can now tell Docker Desktop to use this as the frontend source. In another terminal run: You can now tell Docker Desktop to use this as the frontend source. In another terminal run:
```console ```console
$ docker extension dev ui-source <name-of-your-extensions> http://localhost:3000 $ docker extension dev ui-source <name-of-your-extensions> http://localhost:5173
``` ```
Close and reopen the Docker Desktop dashboard and go to your extension. All the changes to the frontend code are immediately visible. Close and reopen the Docker Desktop dashboard and go to your extension. All the changes to the frontend code are immediately visible.