From 2ab040bf072410b606e7c062158cbb906b3d6f36 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Fri, 2 Jun 2023 02:54:58 +0000 Subject: [PATCH] added pm2 ecosystem file --- ecosystem.config.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 00000000..fd2b9552 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,34 @@ +module.exports = { + apps: [ + { + name: "main_api", + script: "./packages/server/dist/index.js", + instances: "max", + exec_mode: "cluster" + }, + { + name: "music_api", + script: "./packages/music_server/dist/index.js", + instances: "max", + exec_mode: "cluster" + }, + { + name: "file_api", + script: "./packages/file_server/dist/index.js", + instances: "max", + exec_mode: "cluster" + }, + { + name: "marketplace_api", + script: "./packages/marketplace_server/dist/index.js", + instances: "max", + exec_mode: "cluster" + }, + { + name: "chat_api", + script: "./packages/chat_server/dist/index.js", + instances: "max", + exec_mode: "cluster" + } + ], +}