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)