VirtualPR/backend/ecosystem.config.cjs

20 lines
370 B
JavaScript

const path = require('node:path');
module.exports = {
apps: [
{
name: 'virtualpr',
cwd: __dirname,
script: path.join(__dirname, 'src/index.js'),
interpreter: 'node',
instances: 1,
exec_mode: 'fork',
autorestart: true,
max_memory_restart: '512M',
env: {
NODE_ENV: 'production',
},
},
],
};