silken
v1.0.9
Published
Get number of the current request being served
Downloads
16
Readme
Silken
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"