refactor: simplify ecosystem configuration and update script paths
Deploy Next.js via SSH (Direto) / deploy (push) Successful in 41s Details

This commit is contained in:
joelson 2026-01-07 17:17:37 -03:00
parent 5a3af0b078
commit 4e958563b0
2 changed files with 9 additions and 11 deletions

View File

@ -26,5 +26,4 @@ jobs:
pm2 startOrReload ecosystem.config.js --update-env pm2 startOrReload ecosystem.config.js --update-env
# 5. Salvar para persistência
pm2 save pm2 save

View File

@ -1,17 +1,16 @@
module.exports = { module.exports = {
apps: [{ apps: [{
name: "portal-dias-rota", name: "portal-dias-rota",
script: "apps/portal-dias-rota/server.js", script: "server.js",
cwd: "/home/juru/apps/portal-dias-rota/.next/standalone", cwd: "/home/juru/apps/current/.next/standalone",
instances: "max",
exec_mode: "cluster",
watch: false,
max_memory_restart: "1G",
env: { env: {
NODE_ENV: "production", NODE_ENV: "production",
PORT: 3003, PORT: 3003,
HOSTNAME: "0.0.0.0" HOSTNAME: "0.0.0.0"
} }
}] }]
} }