Commit 5fef0618 authored by Porkepix's avatar Porkepix

Add a process file

Adapt README and Gitlab CI accordingly
parent 5d0075da
Pipeline #1922 passed with stage
in 1 minute and 14 seconds
...@@ -26,7 +26,7 @@ deploy preprod: ...@@ -26,7 +26,7 @@ deploy preprod:
- rm -rf node_modules/ - rm -rf node_modules/
- npm install - npm install
- cp config.json.default config.json - cp config.json.default config.json
- sudo /usr/bin/pm2 restart slogan - sudo /usr/bin/pm2 startOrRestart slogan.app.yml
- sudo /usr/bin/pm2 show slogan - sudo /usr/bin/pm2 show slogan
only: only:
- preprod - preprod
...@@ -42,7 +42,7 @@ deploy prod: ...@@ -42,7 +42,7 @@ deploy prod:
- rm -rf node_modules/ - rm -rf node_modules/
- npm install --production - npm install --production
- cp config.json.default config.json - cp config.json.default config.json
- sudo /usr/bin/pm2 restart slogan - sudo /usr/bin/pm2 startOrRestart slogan.app.yml
- sudo /usr/bin/pm2 show slogan - sudo /usr/bin/pm2 show slogan
only: only:
- master - master
......
...@@ -22,5 +22,5 @@ npm install ...@@ -22,5 +22,5 @@ npm install
We're suggesting the use of pm2 to manage the service We're suggesting the use of pm2 to manage the service
```sh ```sh
pm2 start srv.sh --name slogan --watch pm2 start slogan.app.yml
``` ```
apps:
- script: ./srv.js
name: slogan
watch: true
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