Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: inherit PATH in portos-server so git commands resolve via PM2

[._.]/ Adam Eivyd5f2658878fe
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index d7866b8d9b..1b7835c713 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -14,5 +14,6 @@
- setup-data script now copies missing files (not just directories) from data.sample to data, fixing broken updates where new config files like stage-config.json were never propagated to existing installs
- Git remote branches list no longer shows phantom "origin" branch from bare symbolic refs
+- portos-server now inherits PATH from parent process so git commands don't fail with ENOENT when spawned via PM2
## Removed
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index 7afb1bd677..fe5ce8dbdb 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -37,7 +37,8 @@ module.exports = {
...BASE_ENV,
PORT: PORTS.API,
HOST: '0.0.0.0',
- PGPORT: PORTS.POSTGRES
+ PGPORT: PORTS.POSTGRES,
+ PATH: process.env.PATH // Inherit PATH for git/node access in child processes
},
watch: ['server'],
ignore_watch: ['node_modules', '**/*.test.js'],