This is an old revision of the document!
Пример скрипта ecosystem.config.js
module.exports = { apps: [ { name: "project-name", exec_mode: "cluster", instances: "1", script: "./server/index.js", // your script args: "start", env: { NODE_ENV: "production", SOME_ENV: "some_value"... }, }, ], };
pm2 run ecosystem.config.js