From e030dd866d02cbbfdecf09daa7552e069f1b4b47 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 19 May 2023 16:26:49 +0200 Subject: [PATCH] Fix cluster --- packages/server/pm2.config.js | 2 +- packages/worker/.dockerignore | 22 ++-------------------- packages/worker/pm2.config.js | 2 +- 3 files changed, 4 insertions(+), 22 deletions(-) diff --git a/packages/server/pm2.config.js b/packages/server/pm2.config.js index 33829f327c..a86b220c1e 100644 --- a/packages/server/pm2.config.js +++ b/packages/server/pm2.config.js @@ -1,7 +1,7 @@ module.exports = { apps: [ { - script: "dist/index.js", + script: "index.js", instances: "max", exec_mode: "cluster", }, diff --git a/packages/worker/.dockerignore b/packages/worker/.dockerignore index 3bb9f9f5b8..406143d91d 100644 --- a/packages/worker/.dockerignore +++ b/packages/worker/.dockerignore @@ -1,20 +1,2 @@ -node_modules -npm-debug.log -Dockerfile -src -.dockerignore -.git -.gitignore -.yarnrc -.vscode -.idea -.env -__mocks__ -yarn-error.log -jest.config.ts -jest-testcontainers-config.js -LICENSE -nodemon.json -tsconfig.build.json -tsconfig.json -coverage +* +!/dist/ \ No newline at end of file diff --git a/packages/worker/pm2.config.js b/packages/worker/pm2.config.js index b5fb1880ef..5603d9648c 100644 --- a/packages/worker/pm2.config.js +++ b/packages/worker/pm2.config.js @@ -1,7 +1,7 @@ module.exports = { apps: [ { - script: "./dist/index.js", + script: "./index.cjs", instances: "max", exec_mode: "cluster", },