From 46c463486837db4bf57a01a7d7c6b8b12dca687b Mon Sep 17 00:00:00 2001 From: jangwoong Date: Tue, 20 Oct 2026 15:17:40 +0900 Subject: [PATCH] =?UTF-8?q?[as=202]=20as=20config=EB=A1=9C=20pm2=20?= =?UTF-8?q?=EB=A1=9C=20=EC=8B=9C=EC=9E=91=20=ED=95=98=EA=B8=B0=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20=EB=B0=A9=EB=B2=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 60 +++--------------------------- ecosystem.config.js_1020 | 80 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 55 deletions(-) create mode 100644 ecosystem.config.js_1020 diff --git a/ecosystem.config.js b/ecosystem.config.js index 606ace5d2..078285423 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -15,66 +15,16 @@ const common = { } module.exports = { - apps: [ - { - ...common, - - name: 'cs-app', - cwd: './apps/cs', - - script: 'node_modules/next/dist/bin/next', - args: 'start -p 3000', - - error_file: './logs/cs-error.log', - out_file: './logs/cs-out.log', - }, - { - ...common, - - name: 'st-app', - cwd: './apps/st', - - script: 'node_modules/next/dist/bin/next', - args: 'start -p 3001', - - error_file: './logs/st-error.log', - out_file: './logs/st-out.log', - }, + apps: [ { ...common, - name: 'cm-app', - cwd: './apps/cm', - - script: 'node_modules/next/dist/bin/next', - args: 'start -p 3002', - - error_file: './logs/cm-error.log', - out_file: './logs/cm-out.log', - }, - { - ...common, - - name: 'as-app', + name: 'as2-app', cwd: './apps/as', - script: 'node_modules/next/dist/bin/next', args: 'start -p 3004', - - error_file: './logs/cm-error.log', - out_file: './logs/cm-out.log', - }, - { - ...common, - - name: 'features-app', - cwd: './apps/common/features', - - script: 'node_modules/next/dist/bin/next', - args: 'start -p 13000', - - error_file: './logs/feature-error.log', - out_file: './logs/feature-out.log', - }, + error_file: './logs/as2-error.log', + out_file: './logs/as2-out.log', + } ], } diff --git a/ecosystem.config.js_1020 b/ecosystem.config.js_1020 new file mode 100644 index 000000000..606ace5d2 --- /dev/null +++ b/ecosystem.config.js_1020 @@ -0,0 +1,80 @@ +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', + }, +} + +module.exports = { + apps: [ + { + ...common, + + name: 'cs-app', + cwd: './apps/cs', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3000', + + error_file: './logs/cs-error.log', + out_file: './logs/cs-out.log', + }, + { + ...common, + + name: 'st-app', + cwd: './apps/st', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3001', + + error_file: './logs/st-error.log', + out_file: './logs/st-out.log', + }, + { + ...common, + + name: 'cm-app', + cwd: './apps/cm', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3002', + + error_file: './logs/cm-error.log', + out_file: './logs/cm-out.log', + }, + { + ...common, + + name: 'as-app', + cwd: './apps/as', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3004', + + error_file: './logs/cm-error.log', + out_file: './logs/cm-out.log', + }, + { + ...common, + + name: 'features-app', + cwd: './apps/common/features', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 13000', + + error_file: './logs/feature-error.log', + out_file: './logs/feature-out.log', + }, + ], +}