refactor: Update runner specifications from 'python_uv_tool' to 'python' across components and documentation

This commit is contained in:
2026-02-22 23:56:37 -08:00
parent 73e4a2ba00
commit 5e3e01a5b6
23 changed files with 539 additions and 124 deletions

View File

@@ -101,12 +101,10 @@ Castle passes config via env vars in castle.yaml:
```yaml
components:
my-service:
source: my-service
run:
runner: python_uv_tool
runner: python
tool: my-service
cwd: my-service
env:
MY_SERVICE_DATA_DIR: /data/castle/my-service
expose:
http:
internal: { port: 9001 }
@@ -117,6 +115,16 @@ components:
systemd: {}
```
Convention-based env vars (`MY_SERVICE_DATA_DIR`, `MY_SERVICE_PORT`) are
generated automatically by `castle deploy`. Only non-convention values
need `defaults.env`:
```yaml
defaults:
env:
CENTRAL_CONTEXT_URL: http://localhost:9001
```
## Application entry point
```python