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 = {
|
||||
apps: [{
|
||||
name: "portal-dias-rota",
|
||||
script: "server.js",
|
||||
cwd: "/home/juru/apps/ortal-dias-rota",
|
||||
script: "node_modules/next/dist/bin/next",
|
||||
args: "start -p 3003",
|
||||
cwd: "/home/juru/Portal-dias-rota",
|
||||
instances: 1,
|
||||
exec_mode: "fork",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
PORT: 3003,
|
||||
HOSTNAME: "0.0.0.0"
|
||||
|
||||
NODE_ENV: "production"
|
||||
}
|
||||
}]
|
||||
}
|
||||
Loading…
Reference in New Issue