No Padding Module

    silken

    1.0.9 • Public • Published

    Silken

    NPM Version Node Version

    Gracefully restart tool binding with pm2 for Node.JS app.

    Installation

    in your application

    npm i silken -S

    on your machine

    npm i silken -g
    

    Usage

    in your application

    const express = require('express');
    const app = express();
    app.use(silken(app));

    on your machine

    Usage: silk [options]
    
    Options:
      -V, --version  output the version number
      restart <id>   restart app gracefully
      stop <id>      stop health check
      start <id>     start health check
      show <id>      show status
      list           list all
      list <id>      list by id
      -h, --help     output usage information
    

    Notes

    You can replace pm2 restart <id> with silk restart <id>

    When you restart the app by silk

    it goes through "stop health check -> waiting for handling finished -> restart app -> start health check -> restart ok"

    Keywords

    Install

    npm i silken

    DownloadsWeekly Downloads

    0

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    9.99 kB

    Total Files

    6

    Last publish

    Collaborators

    • cooperhsiung