Clean up.

This commit is contained in:
2026-06-13 12:24:41 -07:00
parent 9fe95f6d1e
commit 74a902ee62
11 changed files with 217 additions and 91 deletions

View File

@@ -102,7 +102,7 @@ Castle passes config via env vars in castle.yaml:
programs:
my-service:
description: Does something useful
source: components/my-service
source: code/my-service
stack: python-fastapi
behavior: daemon
@@ -292,12 +292,15 @@ Mapping convention:
Castle services use filesystem storage with JSON metadata sidecars:
```
/data/castle/my-service/
$CASTLE_DATA_DIR/my-service/ # default /data/castle/my-service/
└── bucket/
├── item-name
└── item-name.meta.json
```
The service receives this path via the generated `<PREFIX>_DATA_DIR` env var —
it never hardcodes it. Use the `data_dir` setting from your config.
```python
# storage.py
import hashlib