Commit 0b3783a396

0b3783a396ad74a869639b74719c3a3769e4b6e5

parent: 195e1d0ff1

Unsigned

cmc <hello@cleberg.net> · 2026-08-12 00:26 UTC

Keep the build cache out of the deploy

.orgo-cache.json lives in the output directory because it describes that
directory, and the first orgo deploy put it on the server. Excluding it from
rsync stops that, and stops --delete removing it locally between builds.

The copy the first deploy left behind is gone from the server.

Layout: unified · split

build.py +11 −1
@@ -369,7 +369,17 @@ def deploy_to_server(build_dir, server):
369369 remote_path = f"{server}:/var/www/cleberg.net/"
370370 print(f"Deploying .build/ → {remote_path}")
371371 result = subprocess.run(
372 ["rsync", "-r", "--delete-before", f"{build_dir}/", remote_path],
372 # The build cache lives in the output directory because it describes it, but it
373 # is not part of the site. Excluding it also stops --delete removing it locally.
374 [
375 "rsync",
376 "-r",
377 "--delete-before",
378 "--exclude",
379 ".orgo-cache.json",
380 f"{build_dir}/",
381 remote_path,
382 ],
373383 capture_output=True,
374384 text=True,
375385 check=False,