mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2025-08-02 22:00:08 +03:00
Compare commits
No commits in common. "773fd2830e0018ae0794151c547e09431eebabb3" and "30616ba17d600b8bb42d6ff8020a106978a7979c" have entirely different histories.
773fd2830e
...
30616ba17d
|
@ -4,14 +4,8 @@
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.asgi import get_asgi_application
|
from django.core.asgi import get_asgi_application
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
|
from akarpov.common.channels import HeaderAuthMiddleware
|
||||||
# Initialize Django ASGI application early to ensure the AppRegistry
|
from config import routing
|
||||||
# is populated before importing code that may import ORM models.
|
|
||||||
django_asgi_app = get_asgi_application()
|
|
||||||
|
|
||||||
|
|
||||||
from akarpov.common.channels import HeaderAuthMiddleware # noqa
|
|
||||||
from config import routing # noqa
|
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
|
||||||
|
@ -20,7 +14,7 @@
|
||||||
|
|
||||||
application = ProtocolTypeRouter(
|
application = ProtocolTypeRouter(
|
||||||
{
|
{
|
||||||
"http": django_asgi_app,
|
"http": get_asgi_application(),
|
||||||
"websocket": HeaderAuthMiddleware(URLRouter(routing.websocket_urlpatterns)),
|
"websocket": HeaderAuthMiddleware(URLRouter(routing.websocket_urlpatterns)),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,7 +19,6 @@ services:
|
||||||
- mailhog
|
- mailhog
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
volumes:
|
volumes:
|
||||||
- /var/www/media:/app/akarpov/media
|
|
||||||
- .:/app:z
|
- .:/app:z
|
||||||
env_file:
|
env_file:
|
||||||
- ./.envs/.local/.django
|
- ./.envs/.local/.django
|
||||||
|
@ -45,7 +44,7 @@ services:
|
||||||
- ./.envs/.local/.django
|
- ./.envs/.local/.django
|
||||||
- ./.envs/.local/.postgres
|
- ./.envs/.local/.postgres
|
||||||
ports:
|
ports:
|
||||||
- "3025:3000"
|
- "3000:3000"
|
||||||
command: /start-redirect
|
command: /start-redirect
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user