civictechindex / CTI-website-backend

Python-Django based backend for Civic Tech Index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run AWS containers with DEBUG=False

cnk opened this issue · comments

We should not be using DEBUG=True in our containers on AWS. But if we turn that to False with our current set up, we don't get any of the static files served. Install nginx in the container and serve static files from that and the dynamic stuff by proxying to gunicorn.

Ngnix + gunicorn was too heavy - needed more memory and still was running 2 instances.

Instead I backed out those hosting changes and added 'white-noise' to serve static files while running with DEBUG=False