Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy authored Jun 25, 2024
1 parent 6f3c1e0 commit 02c6d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
if __name__ == "__main__":
uvicorn.run(
"comet.main:app",
host=os.getenv("HOST", "127.0.0.1"),
port=int(os.getenv("PORT", "8000")),
host=os.getenv("FASTAPI_HOST", "127.0.0.1"),
port=int(os.getenv("FASTAPI_PORT", "8000")),
workers=int(os.getenv("FASTAPI_WORKERS", 2*(os.cpu_count() or 1))),
# ssl_keyfile="./key.pem", # For development
# ssl_certfile="./cert.pem" # For development
Expand Down

0 comments on commit 02c6d85

Please sign in to comment.