https://github.com/thinkjs/think-pm2
PM2 detect for ThinkJS 3.x
https://github.com/thinkjs/think-pm2
Last synced: about 1 year ago
JSON representation
PM2 detect for ThinkJS 3.x
- Host: GitHub
- URL: https://github.com/thinkjs/think-pm2
- Owner: thinkjs
- License: mit
- Created: 2017-03-09T02:01:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T03:53:11.000Z (about 9 years ago)
- Last Synced: 2025-03-16T11:36:55.761Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# think-pm2
[](https://www.npmjs.com/package/think-pm2)
[](https://david-dm.org/thinkjs/think-logic)
PM2 detect for ThinkJS
## Install
```
npm install think-pm2
```
## How to use
```js
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;
```