.gitlab-ci.yml 458 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
                - cd $BASE_PATH
okhin's avatar
okhin committed
12
                - rm -rf node_modules/
okhin's avatar
okhin committed
13
                - npm install
okhin's avatar
okhin committed
14
15
                - sudo /usr/bin/pm2 restart slogan
                - sudo /usr/bin/pm2 show slogan
okhin's avatar
okhin committed
16
17
        only:
                - master