comparison hg-web/README.md @ 227:8bb0ac8f4587

[hg-web] Add Bazel deployment target
author MrJuneJune <me@mrjunejune.com>
date Sun, 02 Aug 2026 16:31:44 -0700
parents 3007ef5fc0ed
children c5129452493e
comparison
equal deleted inserted replaced
226:3fa4bf481f42 227:8bb0ac8f4587
215 `hg_web_server.service`, and checks `http://127.0.0.1:6970/`. A failed restart 215 `hg_web_server.service`, and checks `http://127.0.0.1:6970/`. A failed restart
216 or health check restores the previous release and restarts it. The service, 216 or health check restores the previous release and restarts it. The service,
217 release root, active path, health URL, user, and group can be overridden with 217 release root, active path, health URL, user, and group can be overridden with
218 environment variables. 218 environment variables.
219 219
220 ## Publishing
221
222 Push committed Mercurial changes to the configured server:
223
224 ```bash
225 hg push
226 ```
227
228 Then update and deploy on the server:
229
230 ```bash
231 ssh -t [email protected] \
232 'cd ~/zenbu && hg update default && bazel run //hg-web:deploy'
233 ```
234
235 The SSH key may prompt for its passphrase. `//hg-web:deploy` builds the release
236 bundle through Bazel before running the atomic promotion, health check, and
237 rollback workflow.
238
220 ## Forge capability tree 239 ## Forge capability tree
221 240
222 ```text 241 ```text
223 Zenbu Forge 242 Zenbu Forge
224 ├── Repository 243 ├── Repository