ecosystem.config.js
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',
},
max_memory_restart: '256M',
restart_delay: 10000,
max_restarts: 5,
}
]
};