HF-13: site and cloud deployment profiles over one bundle #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/HF-13-site-cloud-profiles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
HF-13 (Phase R): deployment profiles for the dual reference deployment.
apps/worker/src/profile.ts:HF_PROFILE=local|site|cloudselects the served surfaces at runtime, never by hostname.PUBLIC_DEMO=1without a profile still maps tocloud(med.gmac.io). An unknown profile, orPUBLIC_DEMOwith a non-cloud profile, returns 503.apps/worker/src/adapters/registry.ts: dispatch resolves the lab adapter from the operation'starget_systemrow incomponent_instances. A missing, disabled or unsupported component blocks the order for review before any remote call. Real products are allowed only insite; no real worker-side adapter is registered yet (real OpenELIS delivery still runs fromdeploy/realhost scripts).wrangler.cloud.jsonc:hospital-fabric-cloudonhospital.gmac.io, new D1 databaseshospital-fabric-cloud-core/-lis, separate from med.gmac.io.wrangler.site.jsonc: forcelld deploy; no routes (celld doesn't support them).Verification
npm test: 57/57, including three new tests (profile chosen by config on one hostname; registry blocks before sending; site/cloud config parity). Typecheck andcheck:sqlclean.wrangler deploy --dry-runwith the cloud config: bindings resolve.celld deploy --dry-runwith the site config on labnuc (celld 0.6.3): accepted, version4db52689589a907a.main; the shared input isdist/index.mjs(sha256ab8d20a6…at this head), which deployment evidence will record.smoke:workerdfails locally withkill EPERMon this Mac, and fails the same way on unchanged main, so it is environmental; CI runs it on Linux.Not deployed by this PR: the celld systemd node, the hospital.gmac.io Worker and routes come next.
🤖 Generated with Claude Code