2.5.1 • Published 2 months ago

@comet/dev-process-manager v2.5.1

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
2 months ago

@comet/dev-process-manager

Installation

$ npm install
$ npm run build

Usage

Add dev-pm.config.js file to the project root. This file defines all available apps, which should be started by dev-process-manager.

dev-pm.config.js

module.exports = {
    apps: [
        {
             name: "api",
             script: "npm run start",
        },
        ...
    ],
};

Update dev script in package.json

package.json

  ...
  "start": "node <path-to-dev-process-manager>/lib/index.js start",
  ...

The path to the config file can be specified in an optional parameter. "dev-pm.config.js" in the root directory is used by default.

Commands

Start

Either use the package.json script and run npm run start or start with:

$ node <path-to-dev-process-manager>/lib/index.js start [path-to-dev-pm.config.js]

Shutdown

Shutdown all running apps

$ node <path-to-dev-process-manager>/lib/index.js shutdown

Restart

Restart a previously started apps

$ node <path-to-dev-process-manager>/lib/index.js restart <app-name>

Status

Lists running apps

$ node <path-to-dev-process-manager>/lib/index.js status

Logs

Prints logs of either a specific app or all running apps in real time.

$ node <path-to-dev-process-manager>/lib/index.js logs [app-name]
2.5.1

4 months ago

2.5.0

4 months ago

2.4.0

10 months ago

2.3.0

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.0.0

2 years ago

1.0.1-canary.9.0

2 years ago

1.0.1-canary.4.0

2 years ago