Skip to content

Commit

Permalink
PORT Azure default
Browse files Browse the repository at this point in the history
  • Loading branch information
devgeekm committed Nov 1, 2024
1 parent 3202b9f commit 05d404a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ def is_port_in_use(port):
import uvicorn

if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)
port = int(os.getenv("PORT", 8000))
uvicorn.run(app, host="0.0.0.0", port=port)

0 comments on commit 05d404a

Please sign in to comment.