Fix proxy server railway deployment

On Railway you need to use the PORT env var for the port
This commit is contained in:
henry-pulver 2023-09-12 12:12:11 +01:00
parent 738a3b9a8a
commit fd930e5929

View file

@ -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 ##########################