From 10fea9857548ff078431b001e79c391b223a752a Mon Sep 17 00:00:00 2001 From: JuruSysadmin Date: Wed, 7 Jan 2026 17:01:35 -0300 Subject: [PATCH] feat: update PM2 configuration to use `next start` command, set process arguments, instances, and execution mode, and correct the working directory. --- ecosystem.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 4713b93..4517b3f 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,13 +1,13 @@ module.exports = { apps: [{ name: "portal-dias-rota", - script: "server.js", - cwd: "/home/juru/apps/ortal-dias-rota", + script: "node_modules/next/dist/bin/next", + args: "start -p 3003", + cwd: "/home/juru/Portal-dias-rota", + instances: 1, + exec_mode: "fork", env: { - NODE_ENV: "production", - PORT: 3003, - HOSTNAME: "0.0.0.0" - + NODE_ENV: "production" } }] } \ No newline at end of file