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

feat(pm2): add 5-minute watch restart delay to portos-server

Adam Eivy4b6313ffc61e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index a3db96a45a..4dac0fac0b 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -10,6 +10,7 @@
## Changed
+- PM2 file watch restart delay set to 5 minutes to prevent rapid restarts during development
- Triggering agent operations (do:push, do:review, etc.) from the app overview page now navigates to the CoS agents page so the user can watch the agent run
## Fixed
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index 1bd012d880..5c0e4585e8 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -54,6 +54,7 @@ module.exports = {
PATH: process.env.PATH // Inherit PATH for git/node access in child processes
},
watch: ['server'],
+ watch_delay: 300000, // 5 min delay before restarting on file changes
ignore_watch: ['**/node_modules', '**/*.test.js', '**/*package-lock*'],
max_memory_restart: '2G'
},