From c8d0fe5fda14717c8e3cc8a4c8293077798ca2c4 Mon Sep 17 00:00:00 2001 From: YangWu1227 Date: Tue, 1 Oct 2024 22:44:54 -0400 Subject: [PATCH] style: rename ENABLE_DOCS env var to DOCS_URL --- compose.yml | 2 +- project/app/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index 8099829..6d59621 100644 --- a/compose.yml +++ b/compose.yml @@ -18,7 +18,7 @@ services: environment: - ENVIRONMENT=dev - TESTING=0 - - ENABLE_DOCS=/docs + - DOCS_URL=/docs - DATABASE_URL=postgres://postgres:postgres@web-db:5432/web_dev - DATABASE_TEST_URL=postgres://postgres:postgres@web-db:5432/web_test diff --git a/project/app/main.py b/project/app/main.py index 0c497fa..f057eb8 100644 --- a/project/app/main.py +++ b/project/app/main.py @@ -13,7 +13,7 @@ def create_app() -> FastAPI: application = FastAPI( title="text-summarizer", lifespan=lifespan, - docs_url=os.getenv("ENABLE_DOCS", None), + docs_url=os.getenv("DOCS_URL", None), redoc_url=None, ) application.include_router(ping.router)