Files
eveAI/scripts/start_flower.sh
Josako 9f5f090f0c - License Usage Calculation realised
- View License Usages
- Celery Beat container added
- First schedule in Celery Beat for calculating usage (hourly)
- repopack can now split for different components
- Various fixes as consequece of changing file_location / file_name ==> bucket_name / object_name
- Celery Routing / Queuing updated
2024-10-11 16:33:36 +02:00

29 lines
781 B
Bash
Executable File

#!/bin/bash
set -e
# scripts/start_flower.sh
# Set default values
REDIS_HOST=${REDIS_URL:-redis}
REDIS_PORT=${REDIS_PORT:-6379}
# Set environment-specific variables
if [ "$FLASK_ENV" = "production" ]; then
# Production settings
export FLOWER_BASIC_AUTH="${FLOWER_USER}:${FLOWER_PASSWORD}"
export FLOWER_BROKER_URL="redis://${REDIS_USER}:${REDIS_PASS}@${REDIS_URL}:${REDIS_PORT}/0"
export CELERY_BROKER_URL="redis://${REDIS_USER}:${REDIS_PASS}@${REDIS_URL}:${REDIS_PORT}/0"
else
# Development settings
export FLOWER_BROKER_URL="redis://${REDIS_HOST}:${REDIS_PORT}/0"
export CELERY_BROKER_URL="redis://${REDIS_HOST}:${REDIS_PORT}/0"
fi
echo $BROKER_URL
echo "----------"
# Start Flower
exec celery flower \
--url-prefix=/flower \
--port=5555