Files
hapi/scripts
wushenghua 14bbb3e8f8 chore(deploy): prune old versioned binaries, keep current + previous
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
2026-09-17 08:41:05 +08:00
..