mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-08 19:19:42 +00:00
Every deploy writes a new ~110MB binary; without pruning the bin dir grows unbounded (7.4GB across 48 versions on the mini). Keep the current symlink target plus the N most recent previous versions (default 2, override with HAPI_KEEP_VERSIONS). - add scripts/prune-versions.sh: filename-sorted prune; safe while sessions are live because unlinking does not affect running processes - deploy-local.sh and deploy-remote.sh run it after a successful deploy