2.2.9 • Published 5 years ago

pon-task-pm2 v2.2.9

Weekly downloads
28
License
Apache-2.0
Repository
github
Last release
5 years ago

pon-task-pm2

Build Status npm Version JS Standard

Pon task to use pm2

Installation

$ npm install pon-task-pm2 --save

Usage

'use strict'

const pon = require('pon')
const ponTaskPm2 = require('pon-task-pm2')

async function tryExample () {
  let run = pon({
    // Define pm2 task
    pm2: ponTaskPm2(),

    // Register shortcuts
    start: 'pm2/start',
    restart: 'pm2/restart',
    stop: 'pm2/stop'
  })

  run('start')
}

tryExample()

Signatures

define(filename, options) -> function

Define task

ParamtypeDescription
filenamestringScript file path
optionsObjectOptional settings
options.waitReadybooleanWait to ready ( https://github.com/Unitech/pm2/tree/master/examples/wait-ready )

License

This software is released under the Apache-2.0 License.

Links

2.2.9

5 years ago

2.2.8

5 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.5

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.6

6 years ago

2.1.5

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago