From 4ea7d7f56804babf734077d2667b9ee81fcd6fed Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 9 Jun 2024 22:28:28 +0200 Subject: [PATCH] fix ecosystem.config.example --- broker/ecosystem.config.example.cjs | 9 +++++++-- producer/ecosystem.config.example.cjs | 7 +------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/broker/ecosystem.config.example.cjs b/broker/ecosystem.config.example.cjs index a2ab087..5f75bdf 100644 --- a/broker/ecosystem.config.example.cjs +++ b/broker/ecosystem.config.example.cjs @@ -1,12 +1,17 @@ module.exports = { apps: [ { - name: 'Producer', - port: '3000', + name: 'QueueBroker', + port: '3999', exec_mode: 'fork', script: './dist/producer/src/index.js', env: { + EMAIL_SERVICE: "", + EMAIL_HOST: "", + EMAIL_USER: "", + EMAIL_PASS: "", PORT: "", + MONGO_CONNECTION_STRING: "", REDIS_URL: "", REDIS_USERNAME: "", REDIS_PASSWORD: "", diff --git a/producer/ecosystem.config.example.cjs b/producer/ecosystem.config.example.cjs index 66af27c..cdd646d 100644 --- a/producer/ecosystem.config.example.cjs +++ b/producer/ecosystem.config.example.cjs @@ -1,18 +1,13 @@ module.exports = { apps: [ { - name: 'QueueBroker', + name: 'Producer', port: '3000', exec_mode: 'cluster', instances: '2', script: './dist/broker/src/index.js', env: { - EMAIL_SERVICE: "", - EMAIL_HOST: "", - EMAIL_USER: "", - EMAIL_PASS: "", PORT: "", - MONGO_CONNECTION_STRING: "", REDIS_URL: "", REDIS_USERNAME: "", REDIS_PASSWORD: "",