Go to file
JasonFraser e28715ba34 Add scripts/dev.sh and scripts/prod.sh for the local build-and-ship workflow
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
2026-10-03 14:02:54 -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 Retire backend/.env for durable Dokploy env vars; pre-build backend-billing image 2026-10-02 06:07:57 -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 Document per-client domain routing: wildcard DNS + Dokploy Domain + site name 2026-10-02 07:54:16 -04:00
provisioning Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00
scripts Add scripts/dev.sh and scripts/prod.sh for the local build-and-ship workflow 2026-10-03 14:02:54 -04:00
.env.example Retire backend/.env for durable Dokploy env vars; pre-build backend-billing image 2026-10-02 06:07:57 -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 Add scripts/dev.sh and scripts/prod.sh for the local build-and-ship workflow 2026-10-03 14:02:54 -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 Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -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 Retire backend/.env for durable Dokploy env vars; pre-build backend-billing image 2026-10-02 06:07:57 -04:00
docker-compose.yml Retire backend/.env for durable Dokploy env vars; pre-build backend-billing image 2026-10-02 06:07:57 -04:00
generate-dokploy-compose.sh Drop depends_on's required: sub-key for Dokploy too 2026-10-02 05:24:26 -04:00
inventory-implementation-training-guide.docx Initial commit: Sightbox Phase 0 — native ERPNext deployment 2026-10-01 20:10:06 -04:00