From 43d17e86f383b84d1f8c679040a5c54ed6656aff Mon Sep 17 00:00:00 2001 From: vamsi Date: Wed, 11 Jan 2023 00:17:49 +0530 Subject: [PATCH] chore: else flow for not dockerised redis instances --- apiserver/plane/settings/production.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apiserver/plane/settings/production.py b/apiserver/plane/settings/production.py index b8f48a830..a61d8a909 100644 --- a/apiserver/plane/settings/production.py +++ b/apiserver/plane/settings/production.py @@ -235,15 +235,15 @@ if not DOCKERIZED: }, }, } - -CHANNEL_LAYERS = { - "default": { - "BACKEND": "channels_redis.core.RedisChannelLayer", - "CONFIG": { - "hosts": [(os.environ.get("REDIS_URL"))], +else: + CHANNEL_LAYERS = { + "default": { + "BACKEND": "channels_redis.core.RedisChannelLayer", + "CONFIG": { + "hosts": [(os.environ.get("REDIS_URL"))], + }, }, - }, -} + } WEB_URL = os.environ.get("WEB_URL")