Releases: Unitech/pm2
Releases · Unitech/pm2
2.4.4
2.4.3
- #2759 disable default require of vxx in pmx
- #2651 always spawn pm2 daemon with
node
binary - #2745 new issue template
- #2761 Make JSON log stream timestamp in consistent format
- #2770 Fix trigger API never calling callback
- #2796 Fix absolute path on windows
- [KM] profiler installation via
pm2 install v8-profiler
orpm2 install profiler
- [KM] Agent rescue system
2.4.2
2.4.1
Potentially breaking changes
All services used by the init-system of your platform will now use the following name : pm2-<user>
, take care that if you previously rely on the service name being pm2
- #2720 multi user startup script
Features
- #2266 start and tail logs via
pm2 start app.js --attach
- #2706 install pm2 modules via yarn if available
- [KM] Error reporting: add context (-B3 -A3 code lines)
Fix
- #2699 add back previous termcaps interface via
pm2 imonit
- #2681 fix log folder create
- #2724 make sure process is stopped even if there is a restart_delay
- #2719 show 15 logs line by default
- #2703 allow custom timestamp with pm2-docker
- #2698 fix unicode on pm2 monit
- #2715 handle treekill edge case bug
- Optimize CPU usage of pm2 monit command
Enchancements
- [KM] URL web access dashboard
- [KM] Auto install pm2-server-monit on keymetrics linking
- [KM] Transaction Tracer: reset routes on app restart / wait some time before sending
2.4.0
2.4.0
- #2631 new pm2 monit command (blessed dashboard!)
- #2670 allow to expose a folder over http via
pm2 serve <path> <port>
- #2617 fix startup script generation on macosx (launchd)
- #2650 new option to append env name to app name (used to allow the same app to be launched in different environement w/o name conflict)
- #2671 allow to pass a delay to pm2-docker (
pm2-docker process.json --delay 10
) pm2 ecosystem simple
to generate a simple ecosystem file- aliasing:
pm2-dev <script>
<=>pm2-dev start <script>
- fix git parsing when using cwd
- #2663 allow to directly output json when logging (via log_type for JSON and --log-type via CLI)
- #2675 fix path when installing language module like typescript
- #2674 increase restart timeout for systemd startup
- #2564 allow to operate process (restart/reload/stop/delete) with regex
2.2.1
New Startup System
New startup system. Supported init system: systemd, upstart, launchd, rcd
Documentation: http://pm2.keymetrics.io/docs/usage/startup/
$ pm2 startup # Auto detect available init system + Setup init scripts
$ pm2 unstartup # Disable and Remove init scripts
Install PM2 via APT!
New way to install PM2 on Debian based system:
$ wget -O - http://apt.pm2.io/ubuntu/apt.pm2.io.gpg.key | sudo apt-key add -
$ echo "deb http://apt.pm2.io/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/pm2.list
$ sudo apt-get update
$ sudo apt-get install pm2
Responsive PM2 list
Now when PM2 detects a small terminal, the list get shrinked automatically:
Various fix
- #1090 pm2 resurrect does not respawn the same processes
- #2544 Attach logs to exception
- #2545 Right exit code via pm2 api
- #2543 Fix module pid/mem monitoring
- #2537 Remove duplicated code in Configuration subsystem
- If not TTY do not print ascii table
- #2509 Trigger functions inside Node.js application from the PM2 CLI
- Rename pm2.triggerCustomAction() by pm2.trigger(<app_id>, <action_name>, [params], [cb])
2.1.6
- #2509 Trigger functions inside Node.js application from the PM2 CLI
- #2474 Resolve home path in configuration file
- #2526 Expose .launchAll() method to API
- #2351 inner pm2 actions - drop autorestart and node_args options
- #2530 Make sure all processes are killed on system signal to PM2
- #281 allow to combine PM2_SILENT + pm2 jlist to avoid extra data
- Alias attributes error_file to err_file + err_log + err, alias out_file to out, out_log
- Do not ask for pass for set/multiset from KM
2.1.5
2.1.4
2.1.4
- #2333 #2478 #1732 #1346 #1311 #1101 Fix GracefulShutdown SIGINT output + Better Stop process flow
- Faster CLI load time, reduce load time by 1/4 (downgrade cli-table2 -> cli-table)
- #2353 --wait-ready will wait that the application sends 'ready' event process.send('ready')
- #2486 add --web option to pm2-docker command to expose web process api
- #2425 allow to specify node.js version to be used or installed via interpreter 'node@VERSION'
- #2471 Make app environment immutable on application restart/reload by default for CLI actions
- #2451 Config file can be javascript files
- #2484 fix pm2 kill on windows
- #2101 pm2 ecosystem now generates a javascript configuration file
- #2422 allow to pass none to exec_interpreter
- Do not use disconnect() anymore on cluster processes
- Better Stop process flow: Upgrade TreeKill system + Wait for check
- Fix deploy issue with Windows
- Expose -i to pm2-docker
- Drop npm-shrinkwrap
- Upgrade chokidar (fix symlink), cron, fclone, shelljs
v2.0.18
- #2400 Create log/pid default folder even if the root folder is already created
- #2395 CRON feature now call PM2 for app to be killed (allow to use SIGINT)
- #2413 #2405 #2406 do not exit on unhandledRejection auto catch
- pidusage upgrade to 1.0.8 to avoid util exception on windows when wmic fail
- Do no display error when pidusage try to monitor an unknow PID (modules)