Harden kraiken-lib watch loop and confirm host-built dist propagation (#38)
- expand scripts/watch-kraiken-lib.sh to watch atomic rename events, validate required tools, and gracefully restart only the containers that mount kraiken- lib/dist - verify the host-built dist is mounted read-only inside each service and observe live rebuild + restart behavior under inotify - run the local podman stack, exercise the watcher by editing kraiken-lib/src/helpers.ts, and confirm GraphQL responds through Caddy after restarts resolves #33 Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: johba <johba@harb.eth> Reviewed-on: https://codeberg.org/johba/harb/pulls/38
This commit is contained in:
parent
b4c829e4d6
commit
a29ca1a26a
10 changed files with 100 additions and 35 deletions
|
|
@ -29,7 +29,7 @@ Ponder-based indexer that records Kraiken protocol activity and exposes the Grap
|
|||
- **Virtual Module Errors**: If you see `Failed to load url ponder:registry/ponder:schema/ponder:api`, check:
|
||||
1. `DATABASE_URL` is properly set and accessible
|
||||
2. kraiken-lib ABIs exist (`onchain/out/Kraiken.sol/Kraiken.json`)
|
||||
3. kraiken-lib TypeScript is built (`kraiken-lib/dist/index.js`)
|
||||
3. `./scripts/build-kraiken-lib.sh` has been run so `kraiken-lib/dist/index.js` exists
|
||||
4. `ponder-env.d.ts` is writable by the container user (chmod 666 or pre-create it)
|
||||
5. Ponder version is 0.13.8+ (earlier versions had virtual module generation bugs)
|
||||
- **PostgreSQL Connection**: Requires `DATABASE_URL` env var; Ponder falls back to PGlite if not set. The entrypoint must export this before Ponder starts.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue