Go to file
JasonFraser 219af05c74 Fix marketing container never recreating on AutoDeploy
Confirmed the hard way, live in production: Docker Compose only
recreates a container when its own service definition changes (image,
env, labels...), never from a bind-mounted file's content changing on
disk by itself. marketing's service definition never changes between
deploys, so Dokploy's AutoDeploy -- which wipes and re-clones the whole
git checkout, including bettersightbox-index.html, on every push -- had
never once recreated that container. It kept serving a September-dated,
weeks-stale copy of the page indefinitely, orphaned from the fresh file
sitting right next to it on disk, through every single deploy since
Stage 1.

generate-dokploy-compose.sh now computes a real sha256-based hash of
bettersightbox-index.html and bakes it into the marketing service as a
literal content-hash label -- the one value in the whole generated file
that's deliberately NOT left as a live ${VAR} reference, since its only
job is to actually change when the file's content changes, giving
Compose's own diffing a real reason to recreate the container. Local
dev (where this bug doesn't apply, no AutoDeploy wipe-and-reclone cycle)
keeps the ${MARKETING_HTML_HASH:-dev} default.

Documented in CLAUDE.md and CICD_PLAYBOOK.md: regenerate
docker-compose.dokploy.yml any time bettersightbox-index.html changes,
not just when docker-compose.yml itself changes -- skipping it silently
leaves the marketing page stale with no error anywhere.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y
2026-10-04 14:05:40 -04:00
.agents/skills Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00
backend Add scripts/dev.sh and scripts/prod.sh for the local build-and-ship workflow 2026-10-03 14:02:54 -04:00
backup Fix rclone self-install: pipe to bash, not sh 2026-10-03 23:47:10 -04:00
erpnext-image Add scripts/dev.sh and scripts/prod.sh for the local build-and-ship workflow 2026-10-03 14:02:54 -04:00
frappe_docker@380b9d069a Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00
playbook Fix marketing container never recreating on AutoDeploy 2026-10-04 14:05:40 -04:00
provisioning Add Stock Viewer role: read-only access including cost/value figures 2026-10-03 22:55:19 -04:00
scripts Document exact step-by-step execution order in dev.sh/prod.sh headers 2026-10-03 14:14:31 -04:00
.env.example Make tenants.json durable: move its bind-mount source into SIGHTBOX_DATA_DIR 2026-10-03 20:51:29 -04:00
.gitignore Add scripts/dev.sh and scripts/prod.sh for the local build-and-ship workflow 2026-10-03 14:02:54 -04:00
.gitmodules Repoint frappe_docker submodule to a self-hosted mirror 2026-10-01 20:23:16 -04:00
API_INTEGRATION.md Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00
CLAUDE.md Fix marketing container never recreating on AutoDeploy 2026-10-04 14:05:40 -04:00
UI_DESIGN_THEME.md Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00
bettersightbox-index.html Make the marketing site actually mobile-friendly 2026-10-04 13:52:59 -04:00
docker-compose.data-dir.yml Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00
docker-compose.dokploy.yml Fix marketing container never recreating on AutoDeploy 2026-10-04 14:05:40 -04:00
docker-compose.yml Fix marketing container never recreating on AutoDeploy 2026-10-04 14:05:40 -04:00
generate-dokploy-compose.sh Fix marketing container never recreating on AutoDeploy 2026-10-04 14:05:40 -04:00
inventory-implementation-training-guide.docx Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00