Avoiding to upload rendered file

This commit is contained in:
2026-07-15 11:43:22 +02:00
parent c30c0f1c5e
commit bb1b17d531
2 changed files with 53 additions and 16 deletions
+10 -9
View File
@@ -8,9 +8,12 @@ Workflow:
Design:
- commit appends a timestamped entry to commits.log
- up checks server commits.log for newer entry (aborts if found),
then rsyncs a manifest of only the files needed to render
- down rsyncs everything the server has back to local
(server is already clean — it only holds what was pushed)
then rsyncs a manifest of only the *inputs* needed to render
(manuscript, slides, narration, audio, videos, keynote). It does
NOT push the rendered output (out/*.mp4/.srt) — that is produced
on the rig, so pushing a stale local copy would clobber it.
- down rsyncs everything the server has back to local, including the
freshly rendered out/*.mp4. Rendered output flows one way: rig → local.
"""
import json
@@ -61,12 +64,10 @@ def _build_manifest(project_path: Path) -> list[str]:
for key_file in project_path.glob("*.key"):
files.add(key_file.name)
# Rendered output (mp4 + srt — not low-res previews or transcripts)
out_dir = project_path / "out"
if out_dir.is_dir():
for f in out_dir.iterdir():
if f.is_file() and f.suffix in (".mp4", ".srt"):
files.add(str(f.relative_to(project_path)))
# NOTE: out/ (rendered mp4/srt) is deliberately NOT pushed. The rendering
# rig produces those; pushing the local (older) copy up would overwrite the
# rig's fresh render, which 'down' would then pull back — clobbering the new
# result. Rendered output flows one way only: rig → local via 'down'.
# Manuscript (may be at a non-standard path)
manuscript_rel = project.get("manuscript", "manuscript.txt")