From c06d13990bd699e0442232ede34893502b4d6bf4 Mon Sep 17 00:00:00 2001 From: Charlie Denton Date: Sun, 14 Sep 2025 18:04:25 +0100 Subject: [PATCH] Add alternative build command for prod A dev dependency (distlib) is failing to install on deploy. Seeing as we shouldn't need dev dependencies in prod, I hope the issue can be avoided by installing fewer packages in prod. This duplicates the `make build` script into `make build-prod`, and omits the installation of the dev dependencies. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index a62e1ec4..a679096e 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,14 @@ build: _uv python manage.py migrate python manage.py load_all_django_versions +build-prod: _uv + uv pip install -r requirements.prod.txt + rm -rf staticfiles/* + python manage.py collectstatic --no-input + rm -f ccbv.sqlite + python manage.py migrate + python manage.py load_all_django_versions + run-prod: gunicorn core.wsgi --log-file -