Skip to content

Commit c06d139

Browse files
committed
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.
1 parent ddc8e5a commit c06d139

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ build: _uv
2626
python manage.py migrate
2727
python manage.py load_all_django_versions
2828

29+
build-prod: _uv
30+
uv pip install -r requirements.prod.txt
31+
rm -rf staticfiles/*
32+
python manage.py collectstatic --no-input
33+
rm -f ccbv.sqlite
34+
python manage.py migrate
35+
python manage.py load_all_django_versions
36+
2937
run-prod:
3038
gunicorn core.wsgi --log-file -
3139

0 commit comments

Comments
 (0)