Updated deploy steps

This commit is contained in:
Oliver Marks 2018-01-25 21:45:13 +00:00
parent 26f948d7a9
commit 70589679a6
4 changed files with 7 additions and 11 deletions

View File

@ -31,6 +31,8 @@ pipeline:
- cd /var/www/maidstone-hackspace-website
- git pull
- docker-compose -fstage.yml build
- docker-compose -fstage.yml run --rm django python manage.py compilescss
- docker-compose -fstage.yml run --rm django python manage.py collectstatic
- docker-compose -fstage.yml down --remove-orphans
- docker-compose -fstage.yml up -d

View File

@ -1,6 +1,6 @@
#!/bin/sh
rm -R /app/staticfiles/*
python /app/manage.py collectstatic --noinput
python /app/manage.py compilescss
#rm -R /app/staticfiles/*
#python /app/manage.py collectstatic --noinput
#python /app/manage.py compilescss
/usr/local/bin/gunicorn config.wsgi -w 4 -b unix:/data/sockets/live-gunicorn-mhackspace.sock --error-logfile /var/log/gunicorn/live-gunicorn-mhackspace.log --chdir=/app

View File

@ -1,5 +1,5 @@
#!/bin/sh
python /app/manage.py collectstatic --noinput
python /app/manage.py compilescss
#python /app/manage.py collectstatic --noinput
#python /app/manage.py compilescss
/usr/local/bin/gunicorn config.wsgi -w 2 -b unix:/data/sockets/stage-gunicorn-mhackspace.sock --error-logfile /var/log/gunicorn/stage-gunicorn-mhackspace.log --chdir=/app

File diff suppressed because one or more lines are too long