Skip to content

Commit ffb35b9

Browse files
authored
Revert "refactor: update get_redis return type and clean up main.py imports (#7)" (#9)
This reverts commit cf8104c.
1 parent cf8104c commit ffb35b9

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Dockerfile.uat

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@ COPY . /app
1010
WORKDIR /app
1111
RUN uv sync --frozen --no-cache
1212

13-
# Set PYTHONPATH to include the root directory
14-
ENV PYTHONPATH=/app
15-
16-
# Run the application using uvicorn with the correct module path
17-
CMD ["/app/.venv/bin/uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
13+
# Run the application.
14+
CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "8000", "--host", "0.0.0.0"]

app/infrastructure/redis_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
@lru_cache
8-
def get_redis() -> Redis:
8+
def get_redis() -> Redis[str]:
99
if settings.redis_url:
1010
return Redis.from_url(
1111
settings.redis_url,

app/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
app_dir = Path(__file__).parent
1111
sys.path.insert(0, str(app_dir))
1212

13+
1314
settings = get_settings()
1415

1516
app = FastAPI(

0 commit comments

Comments
 (0)