Run #120 (v0.3.0 deploy) failed at the microservice step: every service folder and ecosystem.config.js were "absent", and pm2 reported "File ecosystem.config.js not found". Root cause: ~/pms on pms1 is a sparse checkout limited to App/, so `git checkout -f $TAG` never materialised the service folders or the root ecosystem.config.js. The app itself deployed fine (App/ is in the sparse set) and prod stayed healthy. - deploy.yml: before managing services, disable sparse-checkout (and clear the legacy core.sparseCheckout config + .git/info/sparse-checkout), then re-checkout the tag to materialise the full tree. Idempotent / no-op once expanded. - Guard the pm2 call: if ecosystem.config.js is still absent, fail with a clear diagnostic (+ sparse-checkout list) instead of the cryptic PM2 error. - README: note the sparse-checkout expansion. Needs a fresh tag (e.g. v0.3.1) to re-run the deploy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| issue_template | ||
| workflows | ||
| PULL_REQUEST_TEMPLATE.md | ||