PM
{
"apps": [
{
"name": "my-nested-app",
"cwd": "./nested-app",
"script": "npm",
"args": "start"
}
]
}
Size: a a a
PM
{
PM
NA
NA
PM
www/ecosystem.config.js
www/project-1/
www/project-N/
NA
PM
PM
NG
NA
NA
NA
you need to specify a directory path for cwd, in this case, just add a / at the end like so :
"apps" : [
{
"name": "hello",
"cwd": "/opt/hello/current/", // / added here
"script": "./hello.js",
"args": "",
"watch": false,
"node_args": "",
"merge_logs": true,
"env" : {
"NODE_ENV": "development"
},
"env_staging" : {
"NODE_ENV": "staging"
},
"env_production" : {
"NODE_ENV": "production"
}
}]
NA
PM
NA
М
NA
module.exports = {
apps: [{
name: 'API2',
script: 'yarn start',
cwd:"./mam",
args: 'one two',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
}]
};
NA
АН
BW