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(pm2): remove PM2_HOME isolation, use global pm2 daemon

Adam Eivy69e9655c93a8
diff --git a/.gitignore b/.gitignore
index b389bbc1de..61c663419e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,3 +39,4 @@ Thumbs.db
# Browser service node_modules (code is committed)
browser/node_modules/
+.pm2
diff --git a/CLAUDE.md b/CLAUDE.md
index 439cecaab2..24871c9660 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -15,10 +15,10 @@ npm run dev
cd server && npm test
cd server && npm run test:watch # Watch mode
-# Production
-npm run pm2:start
-npm run pm2:stop
-npm run pm2:logs
+# Production (npm scripts or pm2 directly)
+pm2 start ecosystem.config.cjs
+pm2 stop ecosystem.config.cjs
+pm2 logs
```
## Architecture
diff --git a/package.json b/package.json
index e0fefe29ee..4f55b43ea4 100644
--- a/package.json
+++ b/package.json
@@ -17,12 +17,12 @@
"dev:client": "cd client && npm run dev",
"build": "cd client && npm run build",
"start": "cd server && npm start",
- "pm2:start": "PM2_HOME=.pm2 ./node_modules/.bin/pm2 start ecosystem.config.cjs",
- "pm2:stop": "PM2_HOME=.pm2 ./node_modules/.bin/pm2 stop ecosystem.config.cjs",
- "pm2:restart": "PM2_HOME=.pm2 ./node_modules/.bin/pm2 restart ecosystem.config.cjs",
- "pm2:logs": "PM2_HOME=.pm2 ./node_modules/.bin/pm2 logs",
- "pm2:status": "PM2_HOME=.pm2 ./node_modules/.bin/pm2 status",
- "pm2:kill": "PM2_HOME=.pm2 ./node_modules/.bin/pm2 kill",
+ "pm2:start": "pm2 start ecosystem.config.cjs",
+ "pm2:stop": "pm2 stop ecosystem.config.cjs",
+ "pm2:restart": "pm2 restart ecosystem.config.cjs",
+ "pm2:logs": "pm2 logs",
+ "pm2:status": "pm2 status",
+ "pm2:kill": "pm2 kill",
"install:all": "npm install && cd client && npm install && cd ../server && npm install && cd .. && npm run setup",
"setup": "node scripts/setup-data.js && node scripts/setup-browser.js",
"setup:data": "node scripts/setup-data.js",