seems the procfile may be wrong

This commit is contained in:
brad stein 2018-10-24 23:02:36 -05:00
parent 20c11043e2
commit 63c4c93c42
4 changed files with 11 additions and 10 deletions

View File

@ -74,18 +74,19 @@ WSGI_APPLICATION = 'ChannelsDrawShareSite.wsgi.application'
ASGI_APPLICATION = 'ChannelsDrawShareSite.routing.application' ASGI_APPLICATION = 'ChannelsDrawShareSite.routing.application'
CHANNEL_LAYERS = { CHANNEL_LAYERS = {
# 'default': {
# 'BACKEND': 'channels_redis.core.RedisChannelLayer',
# 'CONFIG': {
# "hosts": [('127.0.0.1', 6379)],
# },
# },
'default': { 'default': {
'BACKEND': 'asgi_redis.core.RedisChannelLayer', 'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': { 'CONFIG': {
#"hosts": [('127.0.0.1', 6379)],
"hosts": [os.environ.get('REDIS_URL', 'redis://localhost: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 = { CACHES = {

View File

@ -1,2 +1,2 @@
web: daphne ChannelsDrawShareSite.asgi:application --port $PORT --bind 0.0.0.0 -v2 web: daphne ChannelsDrawShareSite.asgi:application --port $PORT --bind 0.0.0.0 -v2
worker: python manage.py worker: python manage.py runserver channels