Commit 129c8bc7 authored by okhin's avatar okhin 🚴
Browse files

Improve the use of pm2

parent e624d17f
Pipeline #1318 passed with stage
in 2 seconds
...@@ -10,6 +10,5 @@ deploy preprod: ...@@ -10,6 +10,5 @@ deploy preprod:
- rsync -ruvC ./ $BASE_PATH - rsync -ruvC ./ $BASE_PATH
- cd $BASE_PATH - cd $BASE_PATH
- npm install - npm install
- pm2 restart srv.js
only: only:
- master - master
...@@ -20,6 +20,7 @@ npm install ...@@ -20,6 +20,7 @@ npm install
## Run ## Run
We're suggesting the use of pm2 to manage the service
```sh ```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