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 184db8273f
commit c3026e7dfb

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}"