1.1.2 • Published 2 years ago
pm2manager v1.1.2
Pm2Manager
A CLI to init PM2 config file for a whole folder. It will create a ecosystem.config.js file for the directory you want to manage.
The content of the file will be something like the below:
module.exports = {
"apps": [
{
"name": "app1",
"cwd": "/path/to/app1",
"script": "./pm2.start.sh"
},
{
"name": "app2",
"cwd": "/path/to/app2",
"script": "./pm2.start.sh"
},
]
}So the default script is pm2.start.sh and you will need to create that file in each of your app folder in order for it to work.
Installation
Using npm:
npm install -g pm2managerOr, using yarn:
yarn global add pm2managerUsage
pm2manager init [path]