Fixes flower not respecting its config location, and a little more info to the user

This commit is contained in:
Trenton H 2023-02-03 14:19:22 -08:00
parent 66333caebc
commit b9f0418038

View File

@ -3,5 +3,10 @@
echo "Checking if we should start flower..."
if [[ -n "${PAPERLESS_ENABLE_FLOWER}" ]]; then
celery --app paperless flower
# Small delay to allow celery to be up first
echo "Starting flower in 5s"
sleep 5
celery --app paperless flower --conf=/usr/src/paperless/src/paperless/flowerconfig.py
else
echo "Not starting flower"
fi