Skip to content

Commit f9b999a

Browse files
author
jacquesbach
committed
Make port more flexible when launching app
1 parent 5e1e5a1 commit f9b999a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,5 +1563,6 @@ def shap_summary():
15631563
# force_rebuild_daily_stats()
15641564

15651565
self_heal_daily_stats()
1566-
1567-
app.run(host='0.0.0.0', port=5000, use_reloader=False)
1566+
1567+
port = int(os.environ.get("PORT", 5000))
1568+
app.run(host='0.0.0.0', port=port, use_reloader=False)

0 commit comments

Comments
 (0)