.gitlab-ci.yml 555 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
job deploy prod:
    stage: deploy
    tag:
        - prod
    only:
        - master
    variables:
        - GIT_DIR: '/var/www/rmn/respect-my-net/.git'
        - GIT_WORK_DIR: '/var/www/rmn/respect-my-net/'
    script:
        - source /var/www/rmn/respect-my-net/env/bin/activate
        - git pull origin master
        - python /var/www/rmn/respect-my-net/manage.py migrate
        - python /var/www/rmn/respect-my-net/manage.py collectstatic
        - python /var/www/rmn/respect-my-net/manage.py rebuild_index
        - sudo service uwsgi restart