Skip to content

Commit

Permalink
feat ✨: Implement environment variable loading
Browse files Browse the repository at this point in the history
- The code implements environment variables loading for the application, then sets up a context manager.
  • Loading branch information
tmeftah committed Aug 28, 2024
1 parent a3a68e1 commit a0c3d10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
from backend.db.sessions import get_db
from backend.db.utils import populate_admin_user

from dotenv import load_dotenv

load_dotenv()


@asynccontextmanager
async def lifespan(app: FastAPI):
Expand Down

0 comments on commit a0c3d10

Please sign in to comment.