diff --git a/config/ecosystem.config.js b/config/ecosystem.config.js new file mode 100644 index 0000000..06ae62a --- /dev/null +++ b/config/ecosystem.config.js @@ -0,0 +1,46 @@ +module.exports = { + apps: [ + { + name: 'novalon-website-1', + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3001', + instances: 1, + exec_mode: 'fork', + autorestart: true, + watch: false, + max_memory_restart: '1G', + env: { + NODE_ENV: 'production', + PORT: 3001 + } + }, + { + name: 'novalon-website-2', + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3002', + instances: 1, + exec_mode: 'fork', + autorestart: true, + watch: false, + max_memory_restart: '1G', + env: { + NODE_ENV: 'production', + PORT: 3002 + } + }, + { + name: 'novalon-website-3', + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3003', + instances: 1, + exec_mode: 'fork', + autorestart: true, + watch: false, + max_memory_restart: '1G', + env: { + NODE_ENV: 'production', + PORT: 3003 + } + } + ] +}; \ No newline at end of file