ecosystem.config.js
module.exports = {
apps: [{
name: 'patty-petitions',
script: 'node_modules/.bin/next',
args: 'start -p 7460',
cwd: '/root/Projects/Patty',
env: {
NODE_ENV: 'production',
PORT: '7460',
},
max_memory_restart: '512M',
instances: 1,
autorestart: true,
}],
};