From 381079bbf319dff31fca25a1b14681fb9bc70a70 Mon Sep 17 00:00:00 2001 From: ishenwei Date: Tue, 28 Apr 2026 13:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/asgi.py | 3 +-- docker-compose.prod.yml | 2 +- docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/asgi.py b/config/asgi.py index 12b02ea..bc33ab2 100644 --- a/config/asgi.py +++ b/config/asgi.py @@ -1,8 +1,7 @@ import os -from django_tenants.asgi import TenantASGIHandler from django.core.asgi import get_asgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development") -application = TenantASGIHandler(get_asgi_application()) +application = get_asgi_application() diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 5de79e5..caf38b0 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -4,7 +4,7 @@ services: env_file: .env command: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 ports: - - "8000:8000" + - "8001:8000" depends_on: - db - redis diff --git a/docker-compose.yml b/docker-compose.yml index acaf414..6af734f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: volumes: - .:/app ports: - - "8000:8000" + - "8001:8000" depends_on: - db - redis