mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 18:14:01 +03:00
Moved CELERY_BROKER_URL definition to .django env file to resolve error when Celery is not used (PR #1693)
This commit is contained in:
parent
867e2ad629
commit
6f638078eb
|
@ -43,3 +43,10 @@ DJANGO_SENTRY_DSN=
|
||||||
# Redis
|
# Redis
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
REDIS_URL=redis://redis:6379/0
|
REDIS_URL=redis://redis:6379/0
|
||||||
|
|
||||||
|
{% if cookiecutter.use_celery == "y" %}
|
||||||
|
# Celery
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
CELERY_BROKER_URL=redis://redis:6379/0
|
||||||
|
|
||||||
|
{% endif %}
|
|
@ -7,9 +7,6 @@ set -o nounset
|
||||||
|
|
||||||
cmd="$@"
|
cmd="$@"
|
||||||
|
|
||||||
# N.B. If only .env files supported variable expansion...
|
|
||||||
export CELERY_BROKER_URL="${REDIS_URL}"
|
|
||||||
|
|
||||||
if [ -z "${POSTGRES_USER}" ]; then
|
if [ -z "${POSTGRES_USER}" ]; then
|
||||||
base_postgres_image_default_user='postgres'
|
base_postgres_image_default_user='postgres'
|
||||||
export POSTGRES_USER="${base_postgres_image_default_user}"
|
export POSTGRES_USER="${base_postgres_image_default_user}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user