diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ff4ee9a..b0cdfbf 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -26,5 +26,4 @@ jobs: pm2 startOrReload ecosystem.config.js --update-env - # 5. Salvar para persistĂȘncia - pm2 save + pm2 save \ No newline at end of file diff --git a/ecosystem.config.js b/ecosystem.config.js index d9d04ef..b071496 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,17 +1,16 @@ module.exports = { apps: [{ name: "portal-dias-rota", - script: "apps/portal-dias-rota/server.js", - cwd: "/home/juru/apps/portal-dias-rota/.next/standalone", - instances: "max", - exec_mode: "cluster", - watch: false, - max_memory_restart: "1G", - + script: "server.js", + cwd: "/home/juru/apps/current/.next/standalone", env: { NODE_ENV: "production", - PORT: 3003, + PORT: 3003, HOSTNAME: "0.0.0.0" + } }] -} \ No newline at end of file +} + + +