's'
This commit is contained in:
7
run.py
7
run.py
@@ -1,6 +1,11 @@
|
||||
import uvicorn
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run("app.main:app", host="0.0.0.0", port=8700, reload=True)
|
||||
import os
|
||||
port = int(os.getenv("PORT", "8007"))
|
||||
uvicorn.run("app.main:app", host="0.0.0.0", port=port, reload=True)
|
||||
# uvicorn.run("app.main:app", host="0.0.0.0", port=8200, reload=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user