Skip to content

Commit

Permalink
chore, load envs from current directory
Browse files Browse the repository at this point in the history
* fastapi uses the environment variables in. env under the current directory
  • Loading branch information
plpycoin authored Nov 1, 2024
1 parent ef7c0c1 commit 31bd39a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from server.app.routes import pipeline
from dotenv import load_dotenv

load_dotenv()

app = FastAPI()
os.environ["USE_FRONTEND"] = "true"
Expand Down

0 comments on commit 31bd39a

Please sign in to comment.