we can add the list of applications which is running in a different port. This is the sample process.json in my project. Here API is running in 3001 port and storeapp is running on 3000 port.
{
"name": "api",
"script": "./src/api/server/index.js",
"node_args": "-r esm",
"watch": ["./config/server.js", "./src/api/server/"],
"instances": "1",
"exec_mode": "fork",
"watch_options": {
"persistent": true,
"ignoreInitial": false
}
},
{
"name": "storeapp",
"script": "./dist/store/server/index.js",
"node_args": "-r esm",
"watch": [
"./config/server.js",
"./theme/assets/index.html"
],
"instances": "1",
"exec_mode": "fork",
"watch_options": {
"persistent": true,
"ignoreInitial": false
}
}
]
}
```