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
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()

View File

@@ -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

View File

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