Mercurial
comparison hg-web/README.md @ 222:a8d6435dc021 hg-web
[hg-web] Run local stack through Bazel
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sun, 02 Aug 2026 09:07:36 -0700 |
| parents | ce7f4400c2de |
| children | 0e7b9464248d |
comparison
equal
deleted
inserted
replaced
| 221:ce7f4400c2de | 222:a8d6435dc021 |
|---|---|
| 171 bazel build //hg-web:hg_web_server_bundle | 171 bazel build //hg-web:hg_web_server_bundle |
| 172 bazel test //markdown_converter/tests:markdown_to_html_test | 172 bazel test //markdown_converter/tests:markdown_to_html_test |
| 173 bazel test //seobeo/tests:all | 173 bazel test //seobeo/tests:all |
| 174 ``` | 174 ``` |
| 175 | 175 |
| 176 Run the Mercurial backend: | 176 Build and run the complete local stack with one Bazel command: |
| 177 | 177 |
| 178 ```bash | 178 ```bash |
| 179 hg serve -a 127.0.0.1 -p 4444 | 179 bazel run //hg-web:dev |
| 180 ``` | 180 ``` |
| 181 | 181 |
| 182 Run the deployable bundle from its own directory so the static root resolves: | 182 This starts `hg serve` on `127.0.0.1:4444` and `hg_web_server` on port `6970`. |
| 183 | 183 Stopping the Bazel target stops both child processes. |
| 184 ```bash | |
| 185 cd bazel-bin/hg-web/hg_web_server_bundle | |
| 186 ./hg_web_server | |
| 187 ``` | |
| 188 | 184 |
| 189 The bundle contains `hg_web_server` and `hg-web/src/`, including generated | 185 The bundle contains `hg_web_server` and `hg-web/src/`, including generated |
| 190 `page.js`, markdown WASM, highlight.js, styles, and image assets. | 186 `page.js`, markdown WASM, highlight.js, styles, and image assets. |
| 191 | 187 |
| 192 ## Deployment contract | 188 ## Deployment contract |