First real commit
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Failing after 29s

This commit is contained in:
Henrik Jess
2024-12-10 15:26:30 +01:00
parent a5a155f238
commit d23c4b08c6
2 changed files with 8 additions and 3 deletions

7
app.py
View File

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