Skip to content

Commit

Permalink
fix: load .env earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Jan 28, 2024
1 parent dc0ceba commit 168b912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions controller/app/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from dotenv import load_dotenv
load_dotenv(verbose=True)
7 changes: 1 addition & 6 deletions controller/app/api.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import os
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.openapi.docs import get_swagger_ui_html
from fastapi.middleware.cors import CORSMiddleware
from app.routes import router

# add dotenv
from dotenv import load_dotenv
import os

load_dotenv()


description = """
API to control Nix operating system 🎛️
Expand Down

0 comments on commit 168b912

Please sign in to comment.