Commit bc625c48 authored by Zac Wood's avatar Zac Wood

Add logging to gunicorn for prod

parent ae6ae6e4
Pipeline #5133 passed with stages
in 2 minutes and 12 seconds
......@@ -4,6 +4,9 @@ ENV PYTHONUNBUFFERED 1
RUN apt-get update
RUN apt-get install netcat python3-dev default-libmysqlclient-dev -y
# downgrade openssl security for compatibility
RUN sed -i -e 's/DEFAULT@SECLEVEL=2/DEFAULT@SECLEVEL=1/g' /etc/ssl/openssl.cnf
RUN mkdir /go
ADD /requirements/ /go/
......@@ -5,5 +5,5 @@ python go/ migrate
python go/ createsuperuser --noinput --username=$superuser --email=$superuser$GO_EMAIL_DOMAIN
echo "from django.contrib.auth import get_user_model; User = get_user_model(); me = User.objects.get(username='$superuser'); me.first_name = 'David'; me.last_name = 'Haynes';; " | python go/ shell
python go/ collectstatic --noinput
gunicorn -b ":8000" --chdir /go/go settings.wsgi
gunicorn --access-logfile '-' -b ":8000" --chdir /go/go settings.wsgi
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