... | ... | @@ -208,3 +208,32 @@ If you want to see all available commands supported by the build system, try one |
|
|
$ rake --tasks
|
|
|
$ rake -D
|
|
|
```
|
|
|
|
|
|
## Working on the Code
|
|
|
|
|
|
```shell
|
|
|
$ rake build:ui_live
|
|
|
$ rake run:server
|
|
|
$ rake demo:up:agent-kea SERVER_MODE=host
|
|
|
```
|
|
|
The first command runs continuous WebUI build. The live build automatically detects code changes and rebuilds the UI. It is useful in cases when a developer is working on the UI changes and wants to instantly observe the results in the browser.
|
|
|
|
|
|
The second command builds and starts the server. Typically, the server also provides the UI bundle via middleware. However, our build system automatically recognises that the UI (live) instance is already running and routes the calls to the live build instead.
|
|
|
|
|
|
Finally, the last command starts the `agent-kea` instance (with the Kea server) in Docker. The `SERVER_MODE` parameter indicates to the agent that the server is running on the host rather than in Docker.
|
|
|
|
|
|
The following graph shows the resulting situation.
|
|
|
|
|
|
```mermaid
|
|
|
graph TB
|
|
|
|
|
|
server --> agent-kea
|
|
|
|
|
|
subgraph "host"
|
|
|
webui[webui] --> server[server]
|
|
|
end
|
|
|
|
|
|
subgraph "docker"
|
|
|
agent-kea
|
|
|
end
|
|
|
``` |
|
|
\ No newline at end of file |