Skip to content

zhuylanz/Pm2Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 pm2manager

Or, using yarn:

yarn global add pm2manager

Usage

pm2manager init [path]

About

a CLI to init PM2 config file for a whole folder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published