fix: one-click deploy tested and working
Open-source Excel-native EPM and consolidation for SAP & Dynamics
Brought to you by:
konsolid-at
Originally created by: grynn-in
./deploy.sh locally — all 9 containers start, Frappe site created, dbt pipeline runs (124/205 pass, 3 expected skips for empty staging tables)| File | Fix |
|---|---|
Dockerfile |
Add cron package, COPY konsol from local instead of git clone |
deploy.sh |
Stage konsol app before build, fix healthcheck Host header |
docker-compose.yml |
CMD-SHELL healthcheck, frappe image for dbt_init, remove :ro, configurable ports |
Caddyfile |
Fix routing order with handle blocks, add header_up Host |
init.sh |
TCP probe instead of redis-cli |
.env.example |
Add HTTP_PORT, HTTPS_PORT |
.gitignore |
Ignore docker/frappe/konsol/ |
./deploy.sh completes without errorscurl -sf https://localhost/api/method/ping returns {"message":"pong"}🤖 Generated with Claude Code
Originally posted by: grynn-in
Code Review: Approve with minor suggestions
+45 / -29 across 7 files — all fixes are battle-tested from a full local deploy.
Fixes verified correct
cronpackage in Dockerfile (bench init needs crontab)CMD-SHELLhealthcheck with Host header (CMD array can't reliably pass-H)dbt_initreusing*frappe-common— good DRY, eliminates duplicate env varshandleblocks fix routing order +header_up Hostfor Frappe multi-tenancy:rofrom dbt_project mount (dbt writestarget/andlogs/)Issues found
1. Hardcoded site name in healthcheck (medium — should fix)
SITE_NAMEis configurable via.env. If someone setsSITE_NAME=epm.corp.com, healthcheck breaks. SinceCMD-SHELLruns throughsh -c, env var expansion works — use${SITE_NAME}instead.2.
git clonestderr suppressed (low)If clone fails for non-auth reasons (bad branch, network), the real error is swallowed. Consider
2>&1instead.3.
rm -rfbefore clone has no guard (low)rm -rf "$KONSOL_DIR"is safe since the var is hardcoded above, but[ -n "$KONSOL_DIR" ] && rm -rf "$KONSOL_DIR"is cheap insurance.4. TCP probe doesn't verify Redis protocol (info)
/dev/tcp/only confirms port is open, not that Redis is ready. Unlikely to cause issues since Redis starts fast.Verdict
Approve — all fixes correct. Recommend fixing [#1] (hardcoded SITE_NAME) before merge.
🤖 Reviewed with Claude Code
Related
Tickets:
#1Originally posted by: grynn-in
All 4 review issues addressed in commit a3d0c5d:
${SITE_NAME:-konsolidat.local}instead of hardcoded value2>&1so real git errors aren't swallowed[ -n "$KONSOL_DIR" ] && rm -rf "$KONSOL_DIR"PING\r\nand verifies*PONG*responseTicket changed by: grynn-in