From c41d0736b7fd95cef13fd69b7a2524ec9e1f16c3 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Tue, 16 Apr 2024 14:05:00 +0100 Subject: [PATCH] fix: Revert "feat: Switch to asgi over wsgi" (#21571) Revert "feat: Switch to asgi over wsgi (#21334)" This reverts commit 2e4547ced604cc68f59c0642d386b86b07cbb643. --- .github/workflows/ci-e2e.yml | 1 + posthog/asgi.py | 7 ------- unit.json | 3 +-- 3 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 posthog/asgi.py diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index 79799757a7be9..9322c51df37c5 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -59,6 +59,7 @@ jobs: timeout-minutes: 5 outputs: chunks: ${{ steps.chunk.outputs.chunks }} + steps: - name: Check out uses: actions/checkout@v3 diff --git a/posthog/asgi.py b/posthog/asgi.py deleted file mode 100644 index 93d995a2f3812..0000000000000 --- a/posthog/asgi.py +++ /dev/null @@ -1,7 +0,0 @@ -import os - -from django.core.asgi import get_asgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "posthog.settings") - -application = get_asgi_application() diff --git a/unit.json b/unit.json index 5a5d5fa312708..0b8de8774edf1 100644 --- a/unit.json +++ b/unit.json @@ -43,8 +43,7 @@ "processes": 4, "working_directory": "/code", "path": ".", - "module": "posthog.asgi", - "protocol": "asgi", + "module": "posthog.wsgi", "user": "nobody", "limits": { "requests": 50000