pon-task-pm2
Pon task to use pm2
Last updated 21 hours ago by realglobe .
Apache-2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install pon-task-pm2 
SYNC missed versions from official npm registry.

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

Param type Description
filename string Script file path
options Object Optional settings

License

This software is released under the Apache-2.0 License.

Links

Maintainers (1)
Downloads
Today 0
This Week 81
This Month 157
Last Day 81
Last Week 53
Last Month 0
Dependencies (3)
Dev Dependencies (17)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |