Skip to content

Commit

Permalink
style: rename ENABLE_DOCS env var to DOCS_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwu1227 committed Oct 2, 2024
1 parent fa5fb54 commit c8d0fe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion project/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c8d0fe5

Please sign in to comment.