mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-20 04:23:56 +00:00
Fix proxy server railway deployment
On Railway you need to use the PORT env var for the port
This commit is contained in:
@@ -61,7 +61,7 @@ def get_models():
|
||||
|
||||
if __name__ == "__main__":
|
||||
from waitress import serve
|
||||
serve(app, host="0.0.0.0", port=5000, threads=500)
|
||||
serve(app, host="0.0.0.0", port=os.environ.get("PORT", 5000), threads=500)
|
||||
|
||||
############### Advanced ##########################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user