4866 Commits

Author SHA1 Message Date
KennyTheBard
3e41cef3a8 App logs from monitor will not be deleted on selecting a different app 2021-02-10 18:29:10 +02:00
Unitech
5e18920dff pm2@4.5.4 4.5.4 2021-01-31 15:41:15 +01:00
Unitech
b743ce064f pm2@4.5.3 2021-01-29 10:19:12 +01:00
Unitech
88b5ab4b57 pm2@4.5.2 4.5.2 2021-01-28 11:13:05 +01:00
Unitech
cc9714ca83 bump copyright years 2021-01-28 11:05:59 +01:00
Unitech
64f8ea0f2c pm2@4.5.1 4.5.1 2020-12-16 15:34:12 +01:00
Unitech
c0372a84c7 prepare 4.5.1 2020-12-16 12:35:24 +01:00
Unitech
56ffa13021 upgrade debug 2020-12-15 12:36:51 +01:00
Unitech
452cc85494 upgrade systeminformation 2020-12-15 12:34:35 +01:00
Unitech
f376825922 feat: restore --sort option on pm2 ls #4536 2020-12-09 12:05:54 +01:00
Unitech
2f61ddbf42 fix: cron-restart in cluster mode + alias --cron to --cron-restart fix #4834 #4733 #4307 #4834 2020-12-09 11:55:41 +01:00
Unitech
0b56e7237b Merge branch 'master' into development 2020-12-09 11:53:39 +01:00
Alexandre Strzelewicz
2ba6dffc6c
Merge pull request #4892 from AdamMajer/fix_npm7_devel
tests: fix tests with npm7
2020-11-05 11:19:30 +00:00
Alexandre Strzelewicz
f830d5f70f
Merge pull request #4897 from Glyphack/patch-2
Update systeminformation package to 4.27.11 (CVE-2020-7752)
2020-11-05 11:18:29 +00:00
Unitech
d13e4a353c test against Node 15.x 2020-10-29 23:16:13 +01:00
Glyphack
94615fbacd
Update systeminformation package to 4.27.11
Related vulnerability: https://github.com/advisories/GHSA-94xh-2fmc-xf5j
2020-10-28 14:40:57 +03:30
Adam Majer
25b7ccd1d1 tests: fix tests with npm7
When run with npm 7.x, the unit tests fails with the error below.
To fix this, simply don't change the CWD when executing the tests

> pm2@4.5.0 test
> bash test/unit.sh && bash test/e2e.sh

[~] Starting test ./filter_env.mocha.js
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/adamm/work/node/pm2/pm2/test/programmatic/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/adamm/work/node/pm2/pm2/test/programmatic/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
2020-10-26 18:15:19 +01:00
Alexandre Strzelewicz
73a4eaf062
[ci skip] bump readme 2020-10-10 15:47:20 +02:00
Alexandre Strzelewicz
49f1871a0b pm2@4.5.0 4.5.0 2020-09-29 15:03:59 +02:00
Unitech
3e004dc6d3 add udp client/server example + fix typo 2020-09-28 13:52:31 +02:00
Unitech
310d68d0b6 pm2@4.5.0 - testing phase 2020-09-28 13:29:55 +02:00
Alexandre Strzelewicz
7f11906374
Merge pull request #4681 from guard43ru/development
Operation not permitted on call setgid, fix: #2957
2020-09-28 13:19:53 +02:00
Alexandre Strzelewicz
108ddea1af
Merge pull request #4741 from getsnoopy/fix-unit-test-script
fix: fix unit test script
2020-09-28 13:17:27 +02:00
Alexandre Strzelewicz
c4929d1108
Merge pull request #4762 from ffflorian/patch-1
fix(npm): Typo in "deleteing"
2020-09-28 13:16:28 +02:00
Unitech
b3b4c9a86e allow to pass --install to force yarn install on tarball install 2020-09-28 13:15:43 +02:00
Alexandre Strzelewicz
39286aba01
Merge pull request #4767 from ykolbin/fix_tarball_module_name_v2
fix: backward compatibility fix for tarball modules
2020-09-28 13:05:14 +02:00
Alexandre Strzelewicz
70715ae258
Merge pull request #4782 from mbrooks/master
Prevent reloadLogs command from hanging
2020-09-28 13:02:18 +02:00
Alexandre Strzelewicz
6ed7ae253a
Merge pull request #4790 from sbleon/fix-e2e-test-path
Fix e2e test paths in CONTRIBUTING doc
2020-09-28 13:00:29 +02:00
Alexandre Strzelewicz
3e9b398715
Merge pull request #4791 from sbleon/fix-namespace-cli-option
Use opts.namespace if it was passed in. Previously, it was ignored.
2020-09-28 12:59:18 +02:00
Alexandre Strzelewicz
f578221ff4
Merge pull request #4808 from typhonius/am-grammar-update
Small grammar fix and addition of units to output.
2020-09-28 12:55:25 +02:00
Alexandre Strzelewicz
ff1e2f14ba
Merge pull request #4841 from web-native/development
Update ProcessContainerFork.js
2020-09-28 12:54:18 +02:00
Alexandre Strzelewicz
b79797004d
Merge pull request #4846 from QS20199/fix/creating-log-folder-in-sync-mode-2
Fix/creating log folder in sync mode.
2020-09-28 12:51:45 +02:00
Unitech
918a41eda6 upgrade dependencies 2020-09-28 12:49:44 +02:00
Unitech
e3583a1329 fix: remote tarball install 2020-09-08 17:29:46 +02:00
qsqiu
a83a3ba351 fix: creating-log-folder-in-sync-mode 2020-09-07 15:36:48 +08:00
qsqiu
3ab9b67316 fix: add test for creating-log-folder-in-sync-mode 2020-09-07 15:36:48 +08:00
Oxford Harrison
1cb0427f2d
Update ProcessContainerFork.js
This commit fixes issue #4839
2020-09-04 16:24:21 +01:00
Unitech
14871cd04f pm2@4.4.1 4.4.1 2020-08-17 10:48:38 +02:00
Adam Malone
1ec91ccbd6
Small grammar fix and addition of units to output. 2020-08-11 20:59:11 +10:00
Leon Miller-Out
74c03accc7 Use opts.namespace if it was passed in. Previously, it was ignored.
Before:

```
$ pm2 start --namespace foo ecosystem.config.js
[PM2][WARN] Applications background_worker not running, starting...
[PM2] App [background_worker] launched (1 instances)
┌─────┬──────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id  │ name                 │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├─────┼──────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0   │ background_worker    │ N/A         │ 0.0.1   │ fork    │ 86094    │ 0s     │ 0    │ online    │ 0%       │ 8.5mb    │ leon     │ enabled  │
└─────┴──────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
```

After:

```
$ pm2 start --namespace foo ecosystem.config.js
[PM2][WARN] Applications background_worker not running, starting...
[PM2] App [background_worker] launched (1 instances)
┌─────┬──────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id  │ name                 │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├─────┼──────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0   │ background_worker    │ foo         │ 0.0.1   │ fork    │ 86290    │ 0s     │ 0    │ online    │ 0%       │ 9.7mb    │ leon     │ enabled  │
└─────┴──────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
```
2020-07-21 13:50:50 -04:00
Leon Miller-Out
15f777df7d Fix e2e test paths in CONTRIBUTING doc 2020-07-21 13:46:27 -04:00
Matt Brooks
08ae19e50d Prevent reloadLogs command from hanging
Previously, when the pm2 reloadLogs command was running as a non-root
user, the process will not release and hangs. The reason for the hang
is that the forked process never closes because the object is empty
and doesn't contain the expected object. This commit checks if an
object exists first, before trying to execute methods on it.

Related to: #4781

Co-authored-by: Franck Danard <fdanard@sangoma.com>
2020-07-14 23:17:37 -05:00
Iaroslav Kolbin
fd49e10739 fix: backward compatibility fix for tarball modules 2020-07-03 13:06:58 +01:00
Unitech
476331f378 feature: now stream logs of precise process id that have been acted on 2020-06-30 18:55:56 +02:00
Unitech
ad77104ec9 Merge branch 'development' 2020-06-30 18:51:18 +02:00
Unitech
5dd2fccd56 fix: example to test metrics 2020-06-30 18:51:12 +02:00
Unitech
c79713c4e1 test fix 2020-06-30 15:32:03 +02:00
Unitech
9095d2ddba test fix 2020-06-30 11:59:24 +02:00
Unitech
4aafc52588 test check 2020-06-30 11:14:00 +02:00
Unitech
bf8caca905 #4765 automatically print applications logs on start/restart for 10secs 2020-06-30 10:47:15 +02:00