pm4me

0.0.8 • Public • Published

PM4ME - is a simple process manager

Warning: It is work-in-progress, not for production use.

How to use

You need to create a configuration file (default name is pm4me.json) defining running services.

Example:

{
  "services": [
    {
      "name": "FE Admin",
      "script": "yarn frontend-admin"
    },
    {
      "name": "FE Mobile",
      "script": "yarn frontend-hcpmobile"
    },
    {
      "name": "API Main",
      "script": "yarn api-main"
    },
    {
      "name": "API Documents",
      "script": "yarn api-documents"
    },
    {
      "name": "API Payments",
      "script": "yarn api-payments"
    }
  ]
}

Fields for services:

  • name - Generic name for the service
  • script - Command running in the loop
  • cwd - (Optional) Working directory
  • restartAfter - Pause (in milliseconds) between restarting the app. Default - 3 seconds.

Stay in touch

License

Nest is MIT licensed.

Readme

Keywords

none

Package Sidebar

Install

npm i pm4me

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

126 kB

Total Files

57

Last publish

Collaborators

  • mentatxx