Updated deploy steps
This commit is contained in:
parent
26f948d7a9
commit
70589679a6
|
@ -31,6 +31,8 @@ pipeline:
|
||||||
- cd /var/www/maidstone-hackspace-website
|
- cd /var/www/maidstone-hackspace-website
|
||||||
- git pull
|
- git pull
|
||||||
- docker-compose -fstage.yml build
|
- 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 down --remove-orphans
|
||||||
- docker-compose -fstage.yml up -d
|
- docker-compose -fstage.yml up -d
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
rm -R /app/staticfiles/*
|
#rm -R /app/staticfiles/*
|
||||||
python /app/manage.py collectstatic --noinput
|
#python /app/manage.py collectstatic --noinput
|
||||||
python /app/manage.py compilescss
|
#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
|
/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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
python /app/manage.py collectstatic --noinput
|
#python /app/manage.py collectstatic --noinput
|
||||||
python /app/manage.py compilescss
|
#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
|
/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
Loading…
Reference in New Issue