diff --git a/Dockerfile b/Dockerfile index a57f56e..6b39974 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,4 +41,4 @@ ARG BUILD ENV BUILD ${BUILD} ENTRYPOINT ["./entrypoint.sh"] -CMD ["uvicorn", "config.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "3", "--lifespan", "off"] +CMD ["uvicorn", "project.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "3", "--lifespan", "off"] diff --git a/src/project/asgi.py b/src/project/asgi.py new file mode 100644 index 0000000..924a849 --- /dev/null +++ b/src/project/asgi.py @@ -0,0 +1,7 @@ +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") + +application = get_asgi_application() diff --git a/src/project/settings.py b/src/project/settings.py index 9b251a7..e581917 100644 --- a/src/project/settings.py +++ b/src/project/settings.py @@ -95,8 +95,8 @@ USE_L10N = True USE_TZ = True STATIC_URL = "/static/" - STATICFILES_DIRS = [PROJECT_DIR / "static"] +STATIC_ROOT = BASE_DIR / "static" SITE_ID = 1