Updated README.md

This commit is contained in:
ybouane 2024-10-12 11:54:15 -04:00 committed by GitHub
parent ffd56e99ee
commit 4f3c356bab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,17 +63,31 @@ export default {
# Installation # Installation
Clone the repo: Clone the repo:
`git clone https://github.com/ybouane/aPulse.git` ```shell
git clone https://github.com/ybouane/aPulse.git
```
Either run the watcher.js script directly (you need to keep it running in the background) Either run the watcher.js script directly (you need to keep it running in the background)
`cd aPulse` ```shell
`node watcher.js` cd aPulse
```
```shell
node watcher.js
```
Or use a tool like PM2 (prefered method): Or use a tool like PM2 (prefered method):
`npm install pm2 -g` ```shell
npm install pm2 -g
```
Start watcher.json Start watcher.json
`pm2 start pm2.json` ```shell
pm2 start pm2.json
```
Configure pm2 to automatically start during startup Configure pm2 to automatically start during startup
`pm2 startup` ```shell
pm2 startup
```
Save current pm2 processes list Save current pm2 processes list
`pm2 save` ```shell
pm2 save
```