mirror of
https://github.com/django/daphne.git
synced 2025-04-21 17:22:03 +03:00
Update default redis url for test project
This commit is contained in:
parent
a9d7284488
commit
5c1a0fc096
|
@ -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
|
||||
|
|
|
@ -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')],
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user