Commit be220eb0 authored by Thibaut Broggi's avatar Thibaut Broggi

Merge branch 'preprod' of https://git.laquadrature.net/lqdn-interne/generateur-slogans into preprod

parents e27379df 2eaeafe7
Pipeline #1926 passed with stages
in 1 minute and 54 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