The quickest way to see how Yard fits together is to follow one commit. We push to an app called notes and watch each step until the browser shows the change. Each step is short and links to the chapter that explains it.
1. You push#
git commit -m "Fix the date on the history page"git pushThe commit lands on the forge, GitHub or Cursor Origin (Cursor’s git host). Yard is not involved yet.
2. The forge rings the doorbell#
Yard is installed on the forge as an app, so the forge sends a webhook to https://yard.example.com/hooks/github. Yard does not take the commit from the webhook. It only learns which repo moved, asks for a check of the apps that follow that repo, and answers at once. Forges and webhooks explains why a webhook is a doorbell, not a delivery.
3. Yard looks for itself#
The check asks the forge for the tip of the branch notes follows, main, with git ls-remote. It compares that commit with the one notes runs now, which the labels of its last deploy container record. The commit is new, and notes has the trigger push, which deploys each new commit. (The other trigger, manual, only watches.) So the check starts a deploy.
A timer runs the same check every five minutes, in case a webhook gets lost. Deploys explains the check.
4. Yard fetches#
Yard updates its clone at /srv/yard/apps/notes/repo to the new commit, with a token from the forge that lasts an hour. The token never lands in the clone.
5. Yard decides what to build#
notes has no compose file and no Containerfile. Its pyproject.toml lists stario, and it has a uv.lock and an app/main.py. So Yard writes a Containerfile from its yard:python-uv template. The deploy log says so:
== sync https://github.com/you/notes main== runs yard:python-uv (containerfile; stario: pyproject.toml declares stario)When Yard is not sure what to build, the story ends here, and the old version keeps running. What an app runs shows how Yard decides.
6. A throwaway container builds#
Yard starts a container just for this deploy, deploy-notes. It holds docker-compose and podman-remote, and it drives the host’s Podman through Podman’s socket. It builds the image:
== build localhost/notes:9c2c7e1a2b3c-3f9a1c2ebuilt 2026-11-06T14:02:11ZThe tag is the commit, then the stamp of Yard’s templates. Deploys explains why the build runs in its own container.
7. Compose swaps the container#
== start localhost/notes:9c2c7e1a2b3c-3f9a1c2edocker-compose up --wait stops the old notes-app-1 and starts a new notes-app-1 from the new image. Caddy sends notes.example.com to that name, so the new container gets the traffic without a change to Caddy. While no container answers, Caddy holds each request for up to ten seconds, so a visitor waits a moment instead of seeing an error. Caddy and HTTPS shows the file.
8. Healthy, or back to the old one#
--wait waits up to two minutes for the new container to become healthy, as its healthcheck defines it:
== started localhost/notes:9c2c7e1a2b3c-3f9a1c2eWhen it never becomes healthy, the script starts the previous image again, and the deploy ends as reverted. A Containerfile that Yard writes has no healthcheck, so “healthy” means “running” until you add one. Healthchecks shows how.
9. The record#
deploy-notes stops and stays. Its labels hold the commit, the image, and the plan before it. Its exit code is the outcome: ok, reverted, or failed. That stopped container is the whole record. Deploys explains why.
From your laptop:
yard status # notes-app-1 shows the new revisionyard app logs --deploy # the deploy log from steps 4 to 8yard events --app notes # every step on one timelineThe whole story in one breath#
You push. The forge rings. Yard asks the forge for the branch tip and sees a new commit. It fetches the commit and decides what to build. A throwaway container builds an image named after the commit, and Compose swaps it in under the same name. When the new container never becomes healthy, the old image comes back.
An image app or a compose URL app follows the same story without steps 4 and 5: Yard asks the registry where the tag points, or fetches the file, and the rest is the same.