← back to Ken
ecosystem.config.js
33 lines
module.exports = {
apps: [
{
name: 'bertha-web',
script: 'node_modules/.bin/next',
args: 'start -p 7800',
cwd: '/root/Projects/Bertha',
env: {
NODE_ENV: 'production',
PORT: 7800,
},
max_memory_restart: '512M',
restart_delay: 5000,
max_restarts: 10,
},
{
name: 'bertha-cron',
script: 'src/workers/cron-runner.js',
cwd: '/root/Projects/Bertha',
env: {
NODE_ENV: 'production',
WEATHER_PULSE: '1', // compute the free NWS-AFD weather-news pulse (advisory, capped ±0.03, contested-only)
WEATHER_PULSE_SHADOW: '1', // SHADOW: log the nudge but DO NOT apply it to p_yes (zero effect on real trades)
// WEATHER_PULSE_CAP: '0.03', // optional: max |nudge| (default 0.03)
// WEATHER_PULSE_CONTEST: '0.10',// optional: |p-0.5| band counted as contested (default 0.10)
},
max_memory_restart: '256M',
restart_delay: 10000,
max_restarts: 5,
}
]
};