From adb4986194cce98d2bccebf1ff08593be2a64ecd Mon Sep 17 00:00:00 2001 From: erm3nda Date: Thu, 27 Jun 2019 14:21:21 +0200 Subject: [PATCH 1/6] Monitorin and startup with pm2 (#11) Helps with monitoring void-mail process with pm2, and to create a system service for pm2. --- docs/installation.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 4e23ba6..45df977 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -34,3 +34,22 @@ Requires [Node.js 10](https://nodejs.org). open http://localhost:3000 +# Process monitoring and startup +Usually, you want this program to run as a service, wich can restart itself in case of crashing, and on every reboot. +This is possible vía pm2, the nodejs process manager. + +1. Run the program using some pm2 flags. You can name processes, i used `--name email`. The `--watch` option restarts the app when dies for any reason. +``` +cd void-mail +pm2 --name email start npm -- start --watch +``` + +2. Save your current list of running processes, so them resurrect when you reboot. +`pm2 save` + +3. Make your system to run it on boot/reboot. You can run it with sudo directly. +`pm2 startup` + +4. Once you did this, you can try bot things. +- Reboot your system and check if void-mail gets started. (`reboot`) +- Kill node app instance and see if gets respawned (ie `kill -9 ``pgrep node`` `) \ No newline at end of file From 453b9cd82d30bb4dd775f20fb1d6c8f9d3f13c8a Mon Sep 17 00:00:00 2001 From: Aravindo Wingeier Date: Thu, 27 Jun 2019 20:23:53 +0800 Subject: [PATCH 2/6] Update installation.md --- docs/installation.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 45df977..e309e1a 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -34,11 +34,11 @@ Requires [Node.js 10](https://nodejs.org). open http://localhost:3000 -# Process monitoring and startup +# Self-Hosted: Process monitoring and startup Usually, you want this program to run as a service, wich can restart itself in case of crashing, and on every reboot. -This is possible vía pm2, the nodejs process manager. +This is possible vía [pm2, the nodejs process manager](http://pm2.keymetrics.io/). -1. Run the program using some pm2 flags. You can name processes, i used `--name email`. The `--watch` option restarts the app when dies for any reason. +1. Run the program using some pm2 flags. You can name processes, I used `--name email`. The `--watch` option restarts the app when dies for any reason. ``` cd void-mail pm2 --name email start npm -- start --watch @@ -50,6 +50,6 @@ pm2 --name email start npm -- start --watch 3. Make your system to run it on boot/reboot. You can run it with sudo directly. `pm2 startup` -4. Once you did this, you can try bot things. +4. Once you did this, you can try to reboot things. - Reboot your system and check if void-mail gets started. (`reboot`) -- Kill node app instance and see if gets respawned (ie `kill -9 ``pgrep node`` `) \ No newline at end of file +- Kill node app instance and see if gets respawned (ie `kill -9 ``pgrep node`` `) From 2273fa61de5ee06fb390d7c0cceed645f019ddf3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2019 11:11:09 +0200 Subject: [PATCH 3/6] Bump lodash.mergewith from 4.6.1 to 4.6.2 (#12) Bumps [lodash.mergewith](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/commits) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3dc5119..e0e7afb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2973,9 +2973,9 @@ "dev": true }, "lodash.mergewith": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", - "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==" + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz", + "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==" }, "lodash.snakecase": { "version": "4.1.1", From 99336f73b06e207250d4284d50626082c4918fda Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2019 22:58:35 +0200 Subject: [PATCH 4/6] Bump eslint-utils from 1.3.1 to 1.4.2 (#16) Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2. - [Release notes](https://github.com/mysticatea/eslint-utils/releases) - [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2) Signed-off-by: dependabot[bot] --- package-lock.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index e0e7afb..8c2b41c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1470,10 +1470,13 @@ } }, "eslint-utils": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz", - "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==", - "dev": true + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.2.tgz", + "integrity": "sha512-eAZS2sEUMlIeCjBeubdj45dmBHQwPHWyBcT1VSYB7o9x9WRRqKxyUoiXlRjyAwzN7YEzHJlYg0NmzDRWx6GP4Q==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.0.0" + } }, "eslint-visitor-keys": { "version": "1.0.0", From a9efe0dc3fecf4bc7e69a3e2674c763d02ba4719 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2019 23:00:17 +0200 Subject: [PATCH 5/6] Bump lodash from 4.17.11 to 4.17.13 (#17) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.13. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.13) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8c2b41c..1cea4dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2927,9 +2927,9 @@ "integrity": "sha512-AZg2kCqrquMJ5FehDsBidV0qHl98NrsYtseUClzjAQ3HFnsDBJTCwGVplSQ82t9/QfgahqvTjaKcZqZkHmS0wQ==" }, "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + "version": "4.17.13", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.13.tgz", + "integrity": "sha512-vm3/XWXfWtRua0FkUyEHBZy8kCPjErNBT9fJx8Zvs+U6zjqPbTUOpkaoum3O5uiA8sm+yNMHXfYkTUHFoMxFNA==" }, "lodash.camelcase": { "version": "4.3.0", diff --git a/package.json b/package.json index 267b010..86aa235 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "helmet": "^3.16.0", "http-errors": "~1.6.2", "imap-simple": "synox/imap-simple#feature/delete", - "lodash": "^4.17.11", + "lodash": "^4.17.13", "mailparser": "^2.4.3", "mem": "^4.2.0", "mnemonist": "^0.27.2", From b6ab20ec6b534f1d37510b5cd88254d39012128f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 13 Oct 2019 19:44:35 +0200 Subject: [PATCH 6/6] Bump mixin-deep from 1.3.1 to 1.3.2 (#18) Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/jonschlinkert/mixin-deep/releases) - [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1cea4dc..309a6a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3302,9 +3302,9 @@ } }, "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, "requires": { "for-in": "^1.0.2",