Commit 6e899019 authored by okhin's avatar okhin 🚴

Adding a production deployment

parent 9a129ce5
Pipeline #1611 passed with stage
in 1 minute and 21 seconds
...@@ -16,3 +16,20 @@ deploy preprod: ...@@ -16,3 +16,20 @@ deploy preprod:
- sudo /usr/bin/pm2 show slogan - sudo /usr/bin/pm2 show slogan
only: only:
- master - master
deploy prod:
variables:
BASE_PATH: /srv/soutien/generateur-slogans
stage: deploy
tags: [prod]
script:
- rsync -ruvC ./ $BASE_PATH
- cd $BASE_PATH
- rm -rf node_modules/
- npm install
- cp config.json.default config.json
- sudo /usr/bin/pm2 restart slogan
- sudo /usr/bin/pm2 show slogan
only:
- master
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