Skip to content

Commit

Permalink
Add dev runner to enable debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ToucheSir committed Sep 26, 2020
1 parent 3285006 commit 37fd007
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@
app = FastAPI()
app.add_middleware(GZipMiddleware)
app.include_router(api_router, dependencies=[Depends(audit_handler)])

# Dev runner
if __name__ == "__main__":
try:
import uvicorn
uvicorn.run("main:app", reload=True)
except:
print("uvicorn not found")

0 comments on commit 37fd007

Please sign in to comment.