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/
.*.swp
# Compiled messages
*.mo
# Settings
settings.py
......@@ -5,11 +5,13 @@ job deploy prod:
only:
- master
variables:
GIT_DIR: '/var/www/rmn/respect-my-net/.git'
GIT_WORK_DIR: '/var/www/rmn/respect-my-net/'
BASE_PATH: '/var/www/rmn/respect-my-net/'
VIRTUALENV: '/var/www/rmn/env/'
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 --noinput
- rsync -ruvC ./ ${BASE_PATH}
- source ${VIRTUALENV}/bin/activate
- pip install --upgrade pip
- 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
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