From 5670dcd4467639c0f5d518c28a9bb0a6d8b39317 Mon Sep 17 00:00:00 2001 From: Oliver Marks Date: Sat, 25 Feb 2017 12:20:34 +0000 Subject: [PATCH] seperate out gunicorn sockets --- compose/django/live-gunicorn-mhackspace.sh | 5 +++++ compose/django/stage-gunicorn-mhackspace.sh | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 compose/django/live-gunicorn-mhackspace.sh create mode 100644 compose/django/stage-gunicorn-mhackspace.sh diff --git a/compose/django/live-gunicorn-mhackspace.sh b/compose/django/live-gunicorn-mhackspace.sh new file mode 100644 index 0000000..24230df --- /dev/null +++ b/compose/django/live-gunicorn-mhackspace.sh @@ -0,0 +1,5 @@ +#!/bin/sh +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 diff --git a/compose/django/stage-gunicorn-mhackspace.sh b/compose/django/stage-gunicorn-mhackspace.sh new file mode 100644 index 0000000..d59987e --- /dev/null +++ b/compose/django/stage-gunicorn-mhackspace.sh @@ -0,0 +1,5 @@ +#!/bin/sh +python /app/manage.py collectstatic --noinput +python /app/manage.py compilescss + +/usr/local/bin/gunicorn config.wsgi -w 4 -b unix:/data/sockets/stage-gunicorn-mhackpace.sock --error-logfile /var/log/gunicorn/stage-gunicorn-mhackspace.log --chdir=/app