From 2c9b08a511e1fa5cc0893334ff7c4c39e6d23c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Preu=C3=9F?= Date: Sun, 3 Mar 2024 15:00:49 +0100 Subject: [PATCH] Add pm2 home variable --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 6cafdd1..6795537 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,15 @@ npm install npm install pm2 -g ``` +#### Set home for windows + +Follow these steps: + +1. Create a new folder `c:\etc\.pm2` +2. Create a new `PM2_HOME` variable (at System level, not User level) and set the value `c:\etc\.pm2` +3. Close all your open terminal windows (or restart Windows) +4. Ensure that your `PM2_HOME` has been set properly, running `echo %PM2_HOME%` + ### Start the server Start and add a process to the pm2 process list: