mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
9284bbd1f6
commit
16e373fadd
19
CHANGELOG.md
19
CHANGELOG.md
@ -1,18 +1,22 @@
|
||||
|
||||
### 2.0.0 - Quantica Ultimatum
|
||||
## 2.0.0 - Quantica Ultimatum
|
||||
|
||||
- Memory usage reduced by 40%
|
||||
- CPU usage in overall situations reduced by 60%
|
||||
- Faster process management with CONCURRENT_ACTIONs enabled
|
||||
- Better Windows support
|
||||
- New PM2 API, backward compatible with previous PM2 versions
|
||||
- **pm2-docker** command with his official [Docker image](https://github.com/keymetrics/pm2-docker-alpine)
|
||||
- **pm2-dev** command enhanced
|
||||
- Watch and Reload
|
||||
- New PM2 API, backward compatible with previous PM2 versions
|
||||
|
||||
The new PM2 API is greatly tested and well designed:
|
||||
|
||||
```javascript
|
||||
var PM2 = require('pm2');
|
||||
|
||||
// Or instanciate a custom PM2 instance
|
||||
|
||||
var pm2 = new PM2.custom({
|
||||
pm2_home : // Default is the legacy $USER/.pm2. Now you can override this value
|
||||
cwd : // Move to CWD,
|
||||
@ -23,8 +27,19 @@ var pm2 = new PM2.custom({
|
||||
machone_name: // Keymetrics instance name
|
||||
});
|
||||
|
||||
// Start an app
|
||||
pm2.start('myapp.js');
|
||||
|
||||
// Start an app with options
|
||||
pm2.start({
|
||||
script : 'api.js',
|
||||
instances: 4
|
||||
}, function(err, processes) {
|
||||
});
|
||||
|
||||
// Stop all apps
|
||||
pm2.stop('all');
|
||||
|
||||
// Bus system to detect events
|
||||
pm2.launchBus((err, bus) => {
|
||||
bus.on('log:out', (message) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user