From 4ae1fa270ae24e5f4599c97d82cd5c9722188fa9 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Tue, 7 Nov 2023 23:06:39 +0100 Subject: [PATCH] doc: refactor doc/deployment-with-pm2.md --- doc/deployment-with-pm2.md | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/doc/deployment-with-pm2.md b/doc/deployment-with-pm2.md index dd8665d..e896508 100644 --- a/doc/deployment-with-pm2.md +++ b/doc/deployment-with-pm2.md @@ -36,35 +36,7 @@ NODE_ENV= PORT= ``` -* create group and user -like this [setup](https://github.com/Software-Ingenieur-Begerad/setup/blob/main/doc/grp-usr.md) - -* adjust group and user privileges -``` -sudo chown -R : /opt/ -``` - -* prepare pm2 like this [setup](https://github.com/Software-Ingenieur-Begerad/setup/blob/main/doc/pm2.md) - -* start the service as npm start script with PM2 -``` -cd /opt/ -pm2 start --name npm -- start --watch -``` - -* register/save the current list of processes you want to manage using PM2 so that they will re-spawn at system boot (every time it is expected or an unexpected server restart) -``` -pm2 save -``` - -* restart your system, and check if all the serviceis running under PM2 -``` -pm2 ls -``` -or -``` -pm2 status -``` +* setup pm2 like [this](https://git.wtf-eg.de/dancesWithCycles/setup/src/branch/main/doc/pm2.md) * configure web server as proxy for instance with this [example](../etc/apache2/sites-available/example.conf)