Update default redis url for test project

This commit is contained in:
Andrew Godwin 2016-03-20 18:34:30 -07:00
parent a9d7284488
commit 5c1a0fc096
2 changed files with 2 additions and 1 deletions

View File

@ -22,5 +22,6 @@ RUN git clone https://github.com/andrewgodwin/channels.git /srv/channels/ && \
python setup.py install
WORKDIR /srv/channels/testproject/
ENV REDIS_URL=redis://redis:6379
EXPOSE 80

View File

@ -32,7 +32,7 @@ CHANNEL_LAYERS = {
"BACKEND": "asgi_redis.RedisChannelLayer",
"ROUTING": "testproject.urls.channel_routing",
"CONFIG": {
"hosts": [os.environ.get('REDIS_URL', 'redis://redis:6379')],
"hosts": [os.environ.get('REDIS_URL', 'redis://127.0.0.1:6379')],
}
},
}