From 3259f30e66dac7b6a4352e74cb2f787f1e425c79 Mon Sep 17 00:00:00 2001 From: nakyeonko3 Date: Tue, 15 Oct 2024 21:03:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=94=84=EB=A1=9C=EB=8D=95=EC=85=98?= =?UTF-8?q?=EC=97=90=EC=84=9C=20pm2=20=EC=8B=A4=ED=96=89=EB=B6=88=EA=B0=80?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=20(#1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 7 ++----- src/app.ts | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 1543486..0d556e6 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,24 +1,21 @@ module.exports = { apps: [{ name: "travely-server", - script: "./dist/app.js", instances: "max", exec_mode: "cluster", + script: "./app.js", autorestart: true, watch: false, max_memory_restart: "1G", env_file: ".env", - wait_ready: true, - listen_timeout: 50000, + listen_timeout: 20000, env: { NODE_ENV: "development", PORT: 3000, - script: "./dist/app.js", }, env_production: { NODE_ENV: "production", PORT: 3000, - script: "./app.js", } }] } \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 27ecdfd..c51498d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -68,7 +68,7 @@ process.on('SIGINT', () => { setTimeout(() => { console.error('프로세스 강제 종료'); process.exit(1); - }, 30000); + }, 20000); }); process.on('SIGTERM', () => { @@ -77,5 +77,5 @@ process.on('SIGTERM', () => { setTimeout(() => { console.error('프로세스 강제 종료'); process.exit(1); - }, 30000); + }, 20000); });