Commit e78212c1 authored by okhin's avatar okhin 🚴

Merge branch '61-fix-the-ci' into 'master'

Move settings.py to settings.py.sample

Closes #61

See merge request !48
parents 2feef41b 12c19955
Pipeline #958 failed with stage
in 2 minutes and 33 seconds
...@@ -12,3 +12,5 @@ nnmon.egg-info/ ...@@ -12,3 +12,5 @@ nnmon.egg-info/
.*.swp .*.swp
# Compiled messages # Compiled messages
*.mo *.mo
# Settings
settings.py
...@@ -5,11 +5,13 @@ job deploy prod: ...@@ -5,11 +5,13 @@ job deploy prod:
only: only:
- master - master
variables: variables:
GIT_DIR: '/var/www/rmn/respect-my-net/.git' BASE_PATH: '/var/www/rmn/respect-my-net/'
GIT_WORK_DIR: '/var/www/rmn/respect-my-net/' VIRTUALENV: '/var/www/rmn/env/'
script: script:
- source /var/www/rmn/respect-my-net/env/bin/activate - rsync -ruvC ./ ${BASE_PATH}
- git pull origin master - source ${VIRTUALENV}/bin/activate
- python /var/www/rmn/respect-my-net/manage.py migrate - pip install --upgrade pip
- python /var/www/rmn/respect-my-net/manage.py collectstatic --noinput - pip install --upgrade -r nnmon-requirements.txt
- python ${BASE_PATH}/manage.py migrate
- python ${BASE_PATH}/manage.py collectstatic --noinput
- touch /var/www/rmn/ready - touch /var/www/rmn/ready
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