Browse Source

Set default value for FLOWER_BASIC_AUTH

pull/1986/head
Hironsan 2 years ago
parent
commit
5007ae5d8e
2 changed files with 2 additions and 2 deletions
  1. 2
      tools/prod-flower.sh
  2. 2
      tools/run.sh

2
tools/prod-flower.sh

@ -10,7 +10,7 @@ cd /backend
python manage.py wait_for_db python manage.py wait_for_db
echo "Starting flower" echo "Starting flower"
if [[ -n "${FLOWER_BASIC_AUTH}" ]]; then
if [[ -n "${FLOWER_BASIC_AUTH:-}" ]]; then
celery --app=config flower --basic_auth="${FLOWER_BASIC_AUTH}" celery --app=config flower --basic_auth="${FLOWER_BASIC_AUTH}"
fi fi
) )

2
tools/run.sh

@ -44,7 +44,7 @@ celery --app=config worker --loglevel=INFO --concurrency="${CELERY_WORKERS:-1}"
celery_pid="$!" celery_pid="$!"
echo "Starting flower" echo "Starting flower"
if [[ -n "${FLOWER_BASIC_AUTH}" ]]; then
if [[ -n "${FLOWER_BASIC_AUTH:-}" ]]; then
celery --app=config flower --basic_auth="${FLOWER_BASIC_AUTH}" & celery --app=config flower --basic_auth="${FLOWER_BASIC_AUTH}" &
fi fi

Loading…
Cancel
Save