Skip to content

Commit 0f3a601

Browse files
committed
Fix path reference to .env file
1 parent 54279f0 commit 0f3a601

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/local_with_uvicorn/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
- redis
1414
volumes:
1515
- ./src/app:/code/app
16-
- .env:/.env
16+
- .env:/code/.env
1717

1818
worker:
1919
build:
@@ -27,7 +27,7 @@ services:
2727
- redis
2828
volumes:
2929
- ./src/app:/code/app
30-
- .env:/.env
30+
- .env:/code/.env
3131

3232
db:
3333
image: postgres:13

src/app/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class Settings(
166166
CORSSettings,
167167
):
168168
model_config = SettingsConfigDict(
169-
env_file=os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "..", ".env"),
169+
env_file=os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", ".env"),
170170
env_file_encoding="utf-8",
171171
case_sensitive=True,
172172
extra="ignore",

0 commit comments

Comments
 (0)