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
|
pm2 startOrReload ecosystem.config.js --update-env
|
||||||
|
|
||||||
# 5. Salvar para persistência
|
|
||||||
pm2 save
|
pm2 save
|
||||||
|
|
@ -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"
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue