From eafa95fd8427ae21b4b81b5615dbc0db5bffde29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Sun, 12 Apr 2026 16:28:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=95=B4=E7=90=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=EF=BC=88=E4=BB=BB=E5=8A=A1=202.4/20?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/ecosystem.config.js | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 config/ecosystem.config.js 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