Skip to content

Commit

Permalink
🚀 changed port to 8181 based on kudu environment variable PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
jadewang26 committed Dec 7, 2024
1 parent bf4a9b1 commit 0ce422b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ def get_session():

app = FastAPI()

print(f"Running on port: {os.getenv('PORT', 8000)}")
print(f"Running on port: {os.getenv('PORT', 8181)}")

# Ensure the app listens on the correct port
if __name__ == '__main__':
uvicorn.run('main:app', host='0.0.0.0', port=8000)
uvicorn.run('main:app', host='0.0.0.0', port=8181)

app.add_middleware(
CORSMiddleware,
Expand Down
Binary file removed requirements2.txt
Binary file not shown.

0 comments on commit 0ce422b

Please sign in to comment.