Releases: Unitech/pm2
Releases · Unitech/pm2
Release list
2.6.0
2.6.0
Changes
- #2998 pm2 report command for automated system inspection
- #2997 --disable-logs option to suppress error
- #2290 allow to declare apps under "pm2" attribute (eq "apps"). Nicer in package.json
- #2994 allow to specify typescript version to be installed
- #2501 low memory environment pm2 setting via PM2_OPTIMIZE_MEMORY (beta)
- #2968 pm2 attach <pm_id> to attach to process stdin / stdout
- pm2-runtime -> drop in replacement for the node.js binary
- #2951 pm2 reload command locker via timestamped lock file
- #2977 pm2 reloadLogs protected
- #2958 Allow to delete attribute via --attribute null
- #2980 PM2_SILENT=true pm2 startup
- #2690 --parallel command allows to change the nb of concurrent actions (reload/restart)
- expose cwd on CLI via --cwd
- multiple pm2-docker enhacements
- Alias pm2.link and pm2.unlink to pm2.interact and pm2._pre_interact
- Allow to customize kill signal via PM2_KILL_SIGNAL
- Support git+http in module installation
- force reverse interaction reconnection on internet discovery
--instances -1when having a 1 cpu is no-longer spawning no processes #2953- refactor the context retrieving from error
- add a TTL for file cache entry
- #2956 Fix listen_timeout in combination with wait_ready
- #2996 respect signal order on pm2 reload (delegate ready function to reload fn)
Breaking
- Drop pm2-daemon CLI (replaced by pm2-runtime)
2.5.0
pm2 register|loginto create new account / login on Keymetrics + auto linkpm2 opento open dashboard on browserpm2 monitor|unmonitor <pm_id|name|all>for selective monitoring- #2818 alias pm2-docker to pm2-daemon
- #2809 correctly resolve git/npm repo when running pm2 install
- #2861 better auto exit check for docker
- #2870 avoid null error when preparing app config
- #2872 avoid showing useless warning
- #438 allow to override daemon config paths via env (example:
PM2_PID_FILE_PATHto override pid file of the daemon) - #2849 better gentoo template for pm2 startup
- #2868 allow tailing log with
--rawflag - #452 Add
PM2_WEB_STRIP_ENV_VARSto remove environnement vars frompm2 webendpoint - #2890 Fix wait-ready for cluster mode
- #2906 randomize machine name with default pm2 link
- #2888 allow to use regex for pm2 logs
- #2045 allow to rename NODE_APP_INSTANCE env variable
- #2809 add
increment_varoptions to ask for a environnement variable to be incremented for each application started - more informations when failing to deploy on custom ecosystem file
- fix tests for node 8
- fix missing callback when overriding console.log
- allow to rename daemon process name via
PM2_DAEMON_NAME - few typo in the readme
2.4.4
2.4.3
- #2759 disable default require of vxx in pmx
- #2651 always spawn pm2 daemon with
nodebinary - #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-profilerorpm2 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 simpleto 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 scriptsInstall 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
