chore(deploy): ship the runtime contract for the server's env check #249

Merged
deploy-server merged 2 commits from claude/deploy-contract into main 2026-09-15 00:21:05 +02:00
Member

Adds deploy/compose.yml: the API's runtime contract (image, container name, every variable it reads) for the server's two-layer compose scheme.

On the server, deploy.sh now copies this file and .env.example out of the image on each deploy, diffs the app layer against the host copy, and aborts before up when a required variable from .env.example is not passed to the container. Host specifics (ports, networks, volume paths) stay in the server's compose.host.yml.

From now on: a new env var goes into .env.example and this file; a new mount is documented here and the host adds the path. No Dockerfile change needed — COPY . . already ships deploy/ and .env.example.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hf5ZBgU3UWHdB7uMd9qEGi

Adds `deploy/compose.yml`: the API's runtime contract (image, container name, every variable it reads) for the server's two-layer compose scheme. On the server, `deploy.sh` now copies this file and `.env.example` out of the image on each deploy, diffs the app layer against the host copy, and aborts before `up` when a required variable from `.env.example` is not passed to the container. Host specifics (ports, networks, volume paths) stay in the server's `compose.host.yml`. From now on: a new env var goes into `.env.example` and this file; a new mount is documented here and the host adds the path. No Dockerfile change needed — `COPY . .` already ships `deploy/` and `.env.example`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Hf5ZBgU3UWHdB7uMd9qEGi
chore(deploy): ship the runtime contract (deploy/compose.yml) for the server's env check
Some checks failed
OpenCodeReview / review (deepseek) (pull_request) Failing after 6s
OpenCodeReview / review (luna) (pull_request) Failing after 7s
Tests / test (pull_request) Successful in 1m7s
6f52f06e43
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hf5ZBgU3UWHdB7uMd9qEGi
chore(deploy): add deploy/CHANGES.md
Some checks failed
Tests / test (pull_request) Failing after 57s
a2d18152f9
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hf5ZBgU3UWHdB7uMd9qEGi
deploy-server deleted branch claude/deploy-contract 2026-09-15 00:21:05 +02:00
Sign in to join this conversation.
No description provided.