From fd930e5929ba5304bf1f1195754bf6ed18aaa168 Mon Sep 17 00:00:00 2001 From: henry-pulver Date: Tue, 12 Sep 2023 12:12:11 +0100 Subject: [PATCH] Fix proxy server railway deployment On Railway you need to use the PORT env var for the port --- proxy-server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy-server/main.py b/proxy-server/main.py index f44dd1025..71b5b6a95 100644 --- a/proxy-server/main.py +++ b/proxy-server/main.py @@ -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 ##########################