[BUILD-423] Update our project to use ASGI (#2147)

[BUILD-423] Update our project to use ASGI (#2147)

diff --git a/Procfile b/Procfile
index 29a3bf3..e369069 100644
--- a/Procfile
+++ b/Procfile
@@ -1,4 +1,4 @@
-web: gunicorn --timeout 120 config.wsgi:application
+web: gunicorn --timeout 120 config.asgi:application -k uvicorn.workers.UvicornWorker
 release: bash release.sh
 worker: celery -A config.celery_app worker -l DEBUG
 beat: celery -A config.celery_app beat -S redbeat.RedBeatScheduler -l DEBUG --pidfile /tmp/celerybeat.pid
diff --git a/config/asgi.py b/config/asgi.py
new file mode 100644
index 0000000..5096b23
--- /dev/null
+++ b/config/asgi.py
@@ -0,0 +1,6 @@
+import os
+
+from django.core.asgi import get_asgi_application
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")
+application = get_asgi_application()
diff --git a/requirements/production.txt b/requirements/production.txt
index f44050a..540d004 100644
--- a/requirements/production.txt
+++ b/requirements/production.txt
@@ -2,5 +2,6 @@
 
 -r base.txt
 
-psycopg2==2.9.9  # https://github.com/psycopg/psycopg2
+psycopg2==2.9.9   # https://github.com/psycopg/psycopg2
 gunicorn==21.2.0  # https://github.com/benoitc/gunicorn
+uvicorn==0.30.1   # https://github.com/encode/uvicorn

GitHub
sha: be3a3064b40424d3537e2e2ad12af5f46819d8d6