Commit 2eaeafe7 authored by Thibaut Broggi's avatar Thibaut Broggi

Merge branch 'add_process_file' into 'preprod'

Add a process file

See merge request !5
parents 83cd4908 5fef0618
Pipeline #1924 passed with stages
in 2 minutes and 27 seconds
......@@ -26,7 +26,7 @@ deploy preprod:
- rm -rf node_modules/
- npm install
- 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
only:
- preprod
......@@ -42,7 +42,7 @@ deploy prod:
- rm -rf node_modules/
- npm install --production
- 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
only:
- master
......
......@@ -22,5 +22,5 @@ npm install
We're suggesting the use of pm2 to manage the service
```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