Skip to content

Commit 10d16d9

Browse files
authored
Merge pull request #283 from classy-python/prod-deps
Add alternative build command for prod
2 parents ddc8e5a + c06d139 commit 10d16d9

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)