.gitlab-ci.yml 357 Bytes
Newer Older
okhin's avatar
okhin committed
1
2
3
4
5
6
7
8
9
10
stages:
        - deploy

deploy preprod:
        variables:
                BASE_PATH: /srv/generateur-slogans
        stage: deploy
        tags: [preprod]
        script: 
                - rsync -ruvC ./ $BASE_PATH
okhin's avatar
okhin committed
11
12
13
                - cd $BASE_PATH
                - npm install
                - pm2 restart srv.js
okhin's avatar
okhin committed
14
15
        only:
                - master