diff --git a/ChannelsDrawShareSite/__pycache__/settings.cpython-36.pyc b/ChannelsDrawShareSite/__pycache__/settings.cpython-36.pyc index c933e2b..ece8329 100644 Binary files a/ChannelsDrawShareSite/__pycache__/settings.cpython-36.pyc and b/ChannelsDrawShareSite/__pycache__/settings.cpython-36.pyc differ diff --git a/ChannelsDrawShareSite/settings.py b/ChannelsDrawShareSite/settings.py index 4638c06..be63a81 100644 --- a/ChannelsDrawShareSite/settings.py +++ b/ChannelsDrawShareSite/settings.py @@ -74,18 +74,19 @@ WSGI_APPLICATION = 'ChannelsDrawShareSite.wsgi.application' ASGI_APPLICATION = 'ChannelsDrawShareSite.routing.application' CHANNEL_LAYERS = { - # 'default': { - # 'BACKEND': 'channels_redis.core.RedisChannelLayer', - # 'CONFIG': { - # "hosts": [('127.0.0.1', 6379)], - # }, - # }, 'default': { - 'BACKEND': 'asgi_redis.core.RedisChannelLayer', + 'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': { + #"hosts": [('127.0.0.1', 6379)], "hosts": [os.environ.get('REDIS_URL', 'redis://localhost:6379')], - } - } + }, + }, + #'default': { + # 'BACKEND': 'asgi_redis.core.RedisChannelLayer', + # 'CONFIG': { + # "hosts": [os.environ.get('REDIS_URL', 'redis://localhost:6379')], + # } + #} } CACHES = { diff --git a/Procfile b/Procfile index 217ada9..c1f7870 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1,2 @@ web: daphne ChannelsDrawShareSite.asgi:application --port $PORT --bind 0.0.0.0 -v2 -worker: python manage.py +worker: python manage.py runserver channels diff --git a/drawshare/__pycache__/consumers.cpython-36.pyc b/drawshare/__pycache__/consumers.cpython-36.pyc index 0440262..5f25d76 100644 Binary files a/drawshare/__pycache__/consumers.cpython-36.pyc and b/drawshare/__pycache__/consumers.cpython-36.pyc differ