Fix proxy server railway deployment
On Railway you need to use the PORT env var for the port
This commit is contained in:
parent
738a3b9a8a
commit
fd930e5929
@ -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 ##########################
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user