Skip to content

Commit

Permalink
implement __main__ and uvicorn.run
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdihaghverdi committed Apr 28, 2024
1 parent 9e7011d commit 6b14a77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import uvicorn

if __name__ == "__main__":
uvicorn.run(host="0.0.0.0", port=8000, app="src.app:app", reload=True, workers=1)

0 comments on commit 6b14a77

Please sign in to comment.