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