Added CELERY_BROKER_URL back to entrypoint and surrounded it with a conditional

This commit is contained in:
Demetris Stavrou 2018-06-27 23:36:06 +03:00
parent 7c69704f9f
commit 2c56b2e0e3

View File

@ -5,6 +5,11 @@ set -o pipefail
set -o nounset
{% if cookiecutter.use_celery == 'y' %}
# N.B. If only .env files supported variable expansion...
export CELERY_BROKER_URL="${REDIS_URL}"
{% endif %}
if [ -z "${POSTGRES_USER}" ]; then
base_postgres_image_default_user='postgres'
export POSTGRES_USER="${base_postgres_image_default_user}"