Sightbox marketing page (box.bettersight.io):
- Mobile nav now closes when a menu link is clicked
- Contact form posts to a new backend/billing/contact_lead.py route,
proxied same-origin through the marketing nginx container to
backend-billing, which notifies via Resend
- Hero section now uses assets/building.jpg as its background
Reorganize: bettersightbox-index.html + its nginx config + assets move to
website/website-bettersightbox/, colocated with two new sibling sites:
- website/ (root) — bi.bettersight.io (Bettersight Intelligence)
- website/website-bettersight.io/ — bettersight.io (parent company apex
page), given the same mobile-nav/contact-form treatment as box's page,
sharing website/backend's existing Resend-based /api/contact endpoint
- website/docker-compose.yml's backend service moved off env_file (never
survives Dokploy's AutoDeploy re-clone) onto plain environment: vars,
same fix already proven for backend-billing
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y
Formalizes the flow now that images are pre-built and pushed rather than
built on the VPS: dev.sh is the fast local iteration loop (build both
custom images for this machine's own architecture, recreate the affected
services, no git/registry involved); prod.sh is the gate before anything
ships (backend test suite must pass, requires a clean main checkout,
rebuilds both images for linux/amd64 and pushes them, then `git push
origin main` to trigger Dokploy's existing AutoDeploy).
Fixes a real bug exposed while wiring prod.sh: erpnext-image/build.sh and
backend/build.sh unconditionally `source` the root .env, whose own active
CUSTOM_IMAGE/CUSTOM_TAG/PULL_POLICY lines would silently clobber any
registry-path override a caller (like prod.sh) exports beforehand —
confirmed the hard way earlier today when a manual override was ignored.
Both scripts now preserve and restore a caller's pre-set values around
that sourcing. Can't fix this by changing .env itself to conditional
defaults, since docker compose reads that same file as plain dotenv, not
bash.
Verified end-to-end: dev.sh built both images and recreated every
affected local service cleanly; prod.sh's guards correctly refused to run
against a dirty working tree; backend's full test suite (98 tests) passes.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y
Confirmed the hard way on a real Dokploy deploy: a plain `docker build` on
this Apple Silicon Mac produces an arm64-only image, so the amd64 Dokploy
VPS failed to pull either custom image ("no matching manifest for
linux/amd64") for configurator/backend/frontend (erpnext-image) and
backend-billing alike.
Both build.sh scripts now branch on whether BACKEND_BILLING_IMAGE/
CUSTOM_IMAGE is a registry path: a bare local tag still builds for this
machine's own architecture (so it runs immediately for local dev), while
a registry path builds specifically for linux/amd64 via buildx (with
--push, since a cross-platform result can't be loaded into the local
image store) — matching the actual Dokploy VPS target regardless of what
architecture the build machine is.
erpnext-image/build.sh previously had no push step at all; added one
following the same pattern.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y
Confirmed the hard way against a live Dokploy AutoDeploy: the code/
checkout is deleted and re-cloned on every deploy, so backend/.env (an
env_file: mount) never survived to the next deploy. Moved its four values
to plain environment: vars sourced from Dokploy's own Environment tab,
which persists across deploys independent of the git-clone wipe.
Also switches backend-billing to the same build-locally-push-to-registry-
pull pattern already used for erpnext-image, so the Dokploy VPS never
builds anything itself (backend/build.sh) — the user's explicit goal of
making this resilient to future frappe_docker/dependency changes, not
just today's deploy error.
Propagated through docker-compose.yml/.dokploy.yml, .env + .env.example,
CLAUDE.md, INSTALLATION_PLAYBOOK.md, CICD_PLAYBOOK.md, BACKUP_RESTORE.md,
backup.sh/restore.sh, and .gitignore's comments.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y
Native ERPNext/Frappe configuration (provisioning script, playbooks,
demo guides), the backend/ billing service (the one piece of custom
code), erpnext-image branding, backup/restore tooling, and
frappe_docker as a pinned submodule.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y