ecosystem.config.js
module.exports = {
apps: [{
name: 'ventura-claw-leads',
script: './server.js',
cwd: __dirname,
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'development',
PORT: '9789'
},
env_production: {
NODE_ENV: 'production',
PORT: '9789'
},
error_file: './logs/err.log',
out_file: './logs/out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
max_memory_restart: '600M',
autorestart: true,
watch: false
}]
};