This commit is contained in:
2026-04-28 13:15:28 +08:00
parent 4aba6dfa77
commit 381079bbf3
3 changed files with 3 additions and 4 deletions

View File

@@ -1,8 +1,7 @@
import os import os
from django_tenants.asgi import TenantASGIHandler
from django.core.asgi import get_asgi_application from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development")
application = TenantASGIHandler(get_asgi_application()) application = get_asgi_application()

View File

@@ -4,7 +4,7 @@ services:
env_file: .env env_file: .env
command: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 command: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000
ports: ports:
- "8000:8000" - "8001:8000"
depends_on: depends_on:
- db - db
- redis - redis

View File

@@ -6,7 +6,7 @@ services:
volumes: volumes:
- .:/app - .:/app
ports: ports:
- "8000:8000" - "8001:8000"
depends_on: depends_on:
- db - db
- redis - redis