refactor: simplify ecosystem configuration and update script paths
Deploy Next.js via SSH (Direto) / deploy (push) Successful in 41s
Details
Deploy Next.js via SSH (Direto) / deploy (push) Successful in 41s
Details
This commit is contained in:
parent
5a3af0b078
commit
4e958563b0
|
|
@ -26,5 +26,4 @@ jobs:
|
|||
|
||||
pm2 startOrReload ecosystem.config.js --update-env
|
||||
|
||||
# 5. Salvar para persistência
|
||||
pm2 save
|
||||
pm2 save
|
||||
|
|
@ -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"
|
||||
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue