From a5ece25b6c1738b0110ec924c0c335d349e2a874 Mon Sep 17 00:00:00 2001 From: jcchoi Date: Thu, 3 Dec 2026 18:10:29 +0900 Subject: [PATCH] =?UTF-8?q?ecosystem=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 61 +++++++++++++++++++++++++++--- ecosystem.config.js_1020 | 80 ---------------------------------------- 2 files changed, 55 insertions(+), 86 deletions(-) delete mode 100644 ecosystem.config.js_1020 diff --git a/ecosystem.config.js b/ecosystem.config.js index c5018b394..606ace5d2 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -11,21 +11,70 @@ const common = { env: { NODE_ENV: 'production', - NODE_TLS_REJECT_UNAUTHORIZED: '0', }, } module.exports = { - apps: [ + 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: 'as2-app', + 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/as2-error.log', - out_file: './logs/as2-out.log', - } + + 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', + }, ], } diff --git a/ecosystem.config.js_1020 b/ecosystem.config.js_1020 deleted file mode 100644 index 606ace5d2..000000000 --- a/ecosystem.config.js_1020 +++ /dev/null @@ -1,80 +0,0 @@ -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', - }, - ], -}