chore: else flow for not dockerised redis instances

This commit is contained in:
vamsi 2023-01-11 00:17:49 +05:30
parent 50503620de
commit 43d17e86f3

View File

@ -235,15 +235,15 @@ if not DOCKERIZED:
}, },
}, },
} }
else:
CHANNEL_LAYERS = { CHANNEL_LAYERS = {
"default": { "default": {
"BACKEND": "channels_redis.core.RedisChannelLayer", "BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": { "CONFIG": {
"hosts": [(os.environ.get("REDIS_URL"))], "hosts": [(os.environ.get("REDIS_URL"))],
},
}, },
}, }
}
WEB_URL = os.environ.get("WEB_URL") WEB_URL = os.environ.get("WEB_URL")