feat: update PM2 configuration to use `next start` command, set process arguments, instances, and execution mode, and correct the working directory.
Deploy Next.js via SSH (Direto) / deploy (push) Successful in 13s
Details
Deploy Next.js via SSH (Direto) / deploy (push) Successful in 13s
Details
This commit is contained in:
parent
75d6a52251
commit
10fea98575
|
|
@ -1,13 +1,13 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
apps: [{
|
apps: [{
|
||||||
name: "portal-dias-rota",
|
name: "portal-dias-rota",
|
||||||
script: "server.js",
|
script: "node_modules/next/dist/bin/next",
|
||||||
cwd: "/home/juru/apps/ortal-dias-rota",
|
args: "start -p 3003",
|
||||||
|
cwd: "/home/juru/Portal-dias-rota",
|
||||||
|
instances: 1,
|
||||||
|
exec_mode: "fork",
|
||||||
env: {
|
env: {
|
||||||
NODE_ENV: "production",
|
NODE_ENV: "production"
|
||||||
PORT: 3003,
|
|
||||||
HOSTNAME: "0.0.0.0"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue