think-pm2

1.0.0 • Public • Published

think-pm2

PM2 detect for ThinkJS

Install

npm install think-pm2

How to use

const pm2 = require('think-pm2');
//use pm2 to manage node process
const inPM2 = pm2.inPM2; 
//set "exec_mode" = "cluster" in pm2 config
const isClusterMode = pm2.isClusterMode; 

Readme

Keywords

none

Package Sidebar

Install

npm i think-pm2

Weekly Downloads

760

Version

1.0.0

License

none

Last publish

Collaborators

  • lizheming
  • welefen
  • sijiecai
  • lushijie
  • berwin
  • bezos
  • toxicjohann
  • huangxiaolu