Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions ecosystem.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
// === CORE SERVICES ===
{
name: 'diamond-vault',
script: '/home/yenn/genesis-q-mem/qmcp_admin_panel.py',
script: './genesis-q-mem/qmcp_admin_panel.py',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'genesis-q-mem/qmcp_admin_panel.py'),

interpreter: 'python3',
autorestart: true,
watch: false,
Expand All @@ -19,7 +19,7 @@ module.exports = {
},
{
name: 'diamond-watchdog',
script: '/home/yenn/genesis-q-mem/qmcp_diamond_watchdog.py',
script: './genesis-q-mem/qmcp_diamond_watchdog.py',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'genesis-q-mem/qmcp_diamond_watchdog.py'),

interpreter: 'python3',
autorestart: true,
watch: false,
Expand All @@ -32,7 +32,7 @@ module.exports = {
},
{
name: 'a2a-handoff',
script: '/home/yenn/genesis-q-mem/a2a_handoff_server.py',
script: './genesis-q-mem/a2a_handoff_server.py',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'genesis-q-mem/a2a_handoff_server.py'),

interpreter: 'python3',
autorestart: true,
watch: false,
Expand All @@ -47,7 +47,7 @@ module.exports = {
// === BLOCKCHAIN SERVICES ===
{
name: 'qmcp-bridge',
script: '/home/yenn/scripts/qmcp_genesis_bridge.cjs',
script: './scripts/qmcp_genesis_bridge.cjs',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'scripts/qmcp_genesis_bridge.cjs'),

autorestart: true,
watch: false,
max_memory_restart: '300M',
Expand All @@ -59,7 +59,7 @@ module.exports = {
},
{
name: 'eth-bridge',
script: '/home/yenn/scripts/eth_optimism_bridge.cjs',
script: './scripts/eth_optimism_bridge.cjs',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'scripts/eth_optimism_bridge.cjs'),

autorestart: true,
watch: false,
max_memory_restart: '300M',
Expand All @@ -71,7 +71,7 @@ module.exports = {
},
{
name: 'genesis-deployer',
script: '/home/yenn/scripts/genesis_deployer.cjs',
script: './scripts/genesis_deployer.cjs',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'scripts/genesis_deployer.cjs'),

autorestart: true,
watch: false,
max_memory_restart: '200M',
Expand All @@ -85,7 +85,7 @@ module.exports = {
// === MINING & MONITORING ===
{
name: 'qflop-miner',
script: '/home/yenn/genesis-q-mem/qmcp_qflop_miner.py',
script: './genesis-q-mem/qmcp_qflop_miner.py',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'genesis-q-mem/qmcp_qflop_miner.py'),

interpreter: 'python3',
autorestart: true,
watch: false,
Expand All @@ -98,7 +98,7 @@ module.exports = {
},
{
name: 'process-guardian',
script: '/home/yenn/scripts/process_guardian.cjs',
script: './scripts/process_guardian.cjs',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'scripts/process_guardian.cjs'),

autorestart: true,
watch: false,
max_memory_restart: '200M',
Expand All @@ -107,6 +107,22 @@ module.exports = {
COMPUTE_MODE: 'local',
ALWAYS_ON: 'true'
}
},

// === PROJECT GENIE INTEGRATION ===
{
name: 'project-genie',
script: './scripts/genesis.cjs',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a relative path here can be fragile, as it depends on the directory where the pm2 command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js's path module.

This suggestion uses an inline require for convenience. A cleaner approach would be to add const path = require('path'); at the top of the file and then use path.resolve(...) here.

      script: require('path').resolve(__dirname, 'scripts/genesis.cjs'),

autorestart: true,
watch: false,
max_memory_restart: '500M',
restart_delay: 5000,
env: {
GENESIS_LOOP: 'true',
FORCE_MUTATION: 'true',
COMPUTE_MODE: 'local',
ALWAYS_ON: 'true'
}
}
]
};