switch kubernetes deployment to daphne server

This commit is contained in:
Jens Langhammer
2019-04-10 22:38:25 +02:00
parent c9ac10f6f6
commit 11630c9a74
4 changed files with 18 additions and 3 deletions

13
passbook/core/asgi.py Normal file
View File

@ -0,0 +1,13 @@
"""
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
import os
import django
from channels.routing import get_default_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "passbook.core.settings")
django.setup()
application = get_default_application()