Scores own deploy. harmony_app is identity, images, context, and HarmonyApp→Scores. Authoring DX lives in dx. Compose/chart/Application model and the Helm render test are gone.
18 lines
656 B
Markdown
18 lines
656 B
Markdown
# notes — ADR-029 example
|
|
|
|
Frontend, backend, postgres. One type per file. Contexts bind runtimes.
|
|
|
|
```bash
|
|
cargo build -p example-notes --bins
|
|
cargo run -p example-notes --bin notes -- ship --context localdev
|
|
# frontend http://127.0.0.1:15173 backend http://127.0.0.1:18080/ (200 + "ok" when DATABASE_URL is set)
|
|
|
|
cargo run -p example-notes --bin notes -- ship --context cluster
|
|
```
|
|
|
|
`localdev`: host processes + CNPG on k3d (NodePort).
|
|
`cluster`: all containers on the same k3d (nginx + http-echo + CNPG).
|
|
|
|
Context bind is a struct you fill in (`as_command` / `as_container`). Forget a
|
|
field or `postgres.as_command()` — compile error, no macro.
|