修改
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,7 +6,7 @@ services:
|
||||
volumes:
|
||||
- .:/app
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "8001:8000"
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
|
||||
Reference in New Issue
Block a user