Commit 129c8bc7 authored by okhin's avatar okhin 🚴

Improve the use of pm2

parent e624d17f
Pipeline #1318 passed with stage
in 2 seconds
......@@ -10,6 +10,5 @@ deploy preprod:
- rsync -ruvC ./ $BASE_PATH
- cd $BASE_PATH
- npm install
- pm2 restart srv.js
only:
- master
......@@ -20,6 +20,7 @@ npm install
## Run
We're suggesting the use of pm2 to manage the service
```sh
sudo pm2 start srv.js
pm2 start srv.sh --name slogan --watch
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment