-
Notifications
You must be signed in to change notification settings - Fork 0
Integrate Project Genie simulation via PM2 #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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', | ||
| interpreter: 'python3', | ||
| autorestart: true, | ||
| watch: false, | ||
|
|
@@ -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', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a relative path here can be fragile, as it depends on the directory where the This suggestion uses an inline |
||
| interpreter: 'python3', | ||
| autorestart: true, | ||
| watch: false, | ||
|
|
@@ -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', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a relative path here can be fragile, as it depends on the directory where the This suggestion uses an inline |
||
| interpreter: 'python3', | ||
| autorestart: true, | ||
| watch: false, | ||
|
|
@@ -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', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a relative path here can be fragile, as it depends on the directory where the This suggestion uses an inline |
||
| autorestart: true, | ||
| watch: false, | ||
| max_memory_restart: '300M', | ||
|
|
@@ -59,7 +59,7 @@ module.exports = { | |
| }, | ||
| { | ||
| name: 'eth-bridge', | ||
| script: '/home/yenn/scripts/eth_optimism_bridge.cjs', | ||
| script: './scripts/eth_optimism_bridge.cjs', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a relative path here can be fragile, as it depends on the directory where the This suggestion uses an inline |
||
| autorestart: true, | ||
| watch: false, | ||
| max_memory_restart: '300M', | ||
|
|
@@ -71,7 +71,7 @@ module.exports = { | |
| }, | ||
| { | ||
| name: 'genesis-deployer', | ||
| script: '/home/yenn/scripts/genesis_deployer.cjs', | ||
| script: './scripts/genesis_deployer.cjs', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a relative path here can be fragile, as it depends on the directory where the This suggestion uses an inline |
||
| autorestart: true, | ||
| watch: false, | ||
| max_memory_restart: '200M', | ||
|
|
@@ -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', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a relative path here can be fragile, as it depends on the directory where the This suggestion uses an inline |
||
| interpreter: 'python3', | ||
| autorestart: true, | ||
| watch: false, | ||
|
|
@@ -98,7 +98,7 @@ module.exports = { | |
| }, | ||
| { | ||
| name: 'process-guardian', | ||
| script: '/home/yenn/scripts/process_guardian.cjs', | ||
| script: './scripts/process_guardian.cjs', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a relative path here can be fragile, as it depends on the directory where the This suggestion uses an inline |
||
| autorestart: true, | ||
| watch: false, | ||
| max_memory_restart: '200M', | ||
|
|
@@ -107,6 +107,22 @@ module.exports = { | |
| COMPUTE_MODE: 'local', | ||
| ALWAYS_ON: 'true' | ||
| } | ||
| }, | ||
|
|
||
| // === PROJECT GENIE INTEGRATION === | ||
| { | ||
| name: 'project-genie', | ||
| script: './scripts/genesis.cjs', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a relative path here can be fragile, as it depends on the directory where the This suggestion uses an inline |
||
| autorestart: true, | ||
| watch: false, | ||
| max_memory_restart: '500M', | ||
| restart_delay: 5000, | ||
| env: { | ||
| GENESIS_LOOP: 'true', | ||
| FORCE_MUTATION: 'true', | ||
| COMPUTE_MODE: 'local', | ||
| ALWAYS_ON: 'true' | ||
| } | ||
| } | ||
| ] | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a relative path here can be fragile, as it depends on the directory where the
pm2command is executed. For better robustness, it's recommended to construct an absolute path relative to this config file using Node.js'spathmodule.This suggestion uses an inline
requirefor convenience. A cleaner approach would be to addconst path = require('path');at the top of the file and then usepath.resolve(...)here.