Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Update README.md

Andrii R9e92176a2cd1
diff --git a/README.md b/README.md
index e564e464a..67b49ed4c 100644
--- a/README.md
+++ b/README.md
@@ -97,13 +97,15 @@ ORDER BY (id, created, pid);
For Redis please run `redis-cli` to test if it's working well.\
-NodeJS (v14 LTS) & NPM installation:
+NodeJS (v14 LTS) & NPM (and PM2) installation:
```bash
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt -y install nodejs gcc g++ make
+
+npm i -g pm2
```
-Copy the API source code (or `dist` build only) into the `/root/swetrix/api`:
+Copy the API source code (or `dist` build only, don't forget to copy `.env` into `dist` folder) into the `/root/swetrix/api`:
```bash
# Run on the server
mkdir /root/swetrix/api
@@ -120,4 +122,4 @@ npm i
npm run build
```
-Set up NGINX (https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-debian-10)\
+Set up NGINX ( https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-debian-10 )\