Files
frontend/ecosystem.config.js
T

32 lines
550 B
JavaScript

const common = {
exec_mode: 'cluster',
instances: 2,
autorestart: true,
max_memory_restart: '1G',
watch: false,
merge_logs: true,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
env: {
NODE_ENV: 'production',
NODE_TLS_REJECT_UNAUTHORIZED: '0',
},
}
module.exports = {
apps: [
{
...common,
name: 'as2-app',
cwd: './apps/as',
script: 'node_modules/next/dist/bin/next',
args: 'start -p 3004',
error_file: './logs/as2-error.log',
out_file: './logs/as2-out.log',
}
],
}