first commit
This commit is contained in:
11
app/__main__.py
Normal file
11
app/__main__.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import os
|
||||
|
||||
import uvicorn
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run(
|
||||
"app.main:app",
|
||||
host="127.0.0.1",
|
||||
port=int(os.environ.get("PORT", "8765")),
|
||||
reload=os.environ.get("RELOAD", "1") != "0",
|
||||
)
|
||||
Reference in New Issue
Block a user