Files
LifeFaq/app.py
Henrik Jess d23c4b08c6
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Failing after 29s
First real commit
2024-12-10 15:26:30 +01:00

16 lines
329 B
Python

import uvicorn
from fastapi import FastAPI
from dotenv import load_dotenv
import os
load_dotenv()
app = FastAPI(title=os.getenv("APP_NAME", "Default App"))
@app.get("/")
def read_root():
return {"debug": os.getenv("DEBUG", "false")}
if __name__ == "__main__":
uvicorn.run("app:app", host="0.0.0.0", port=9210, reload=True)