1
0
Fork 0

Protect generate_preview_images command

- add `--all` argument
- send computation intensive tasks to Celery
This commit is contained in:
Joachim 2021-05-28 17:25:20 +02:00
parent f206f61e9a
commit 61367c3f4f
2 changed files with 46 additions and 38 deletions

2
bw-dev
View file

@ -108,7 +108,7 @@ case "$CMD" in
runweb python manage.py populate_streams
;;
generate_preview_images)
runweb python manage.py generate_preview_images
runweb python manage.py generate_preview_images $@
;;
*)
echo "Unrecognised command. Try: build, clean, up, initdb, resetdb, makemigrations, migrate, bash, shell, dbshell, restart_celery, test, pytest, test_report, black, populate_feeds, generate_preview_images"