Commit 0b3783a396
Unsigned
Layout: unified · split
build.py +11 −1
| @@ -369,7 +369,17 @@ def deploy_to_server(build_dir, server): | ||
| 369 | 369 | remote_path = f"{server}:/var/www/cleberg.net/" |
| 370 | 370 | print(f"Deploying .build/ → {remote_path}") |
| 371 | 371 | 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 | ], | |
| 373 | 383 | capture_output=True, |
| 374 | 384 | text=True, |
| 375 | 385 | check=False, |