.gitlab-ci.yml 512 Bytes
Newer Older
1
job deploy prod:
Okhin's avatar
Okhin committed
2 3 4 5 6 7
  stage: deploy
  tags:
    - prod
  only:
    - master
  variables:
Okhin's avatar
Okhin committed
8 9
    GIT_DIR: '/var/www/rmn/respect-my-net/.git'
    GIT_WORK_DIR: '/var/www/rmn/respect-my-net/'
Okhin's avatar
Okhin committed
10 11 12 13
  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
Okhin's avatar
Okhin committed
14
    - python /var/www/rmn/respect-my-net/manage.py collectstatic --noinput
Okhin's avatar
Okhin committed
15 16
    - python /var/www/rmn/respect-my-net/manage.py rebuild_index
    - sudo service uwsgi restart