We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09959dc commit 449e2c7Copy full SHA for 449e2c7
1 file changed
webapp/app.py
@@ -53,9 +53,22 @@ def main():
53
Output("post-js-scripts", "children"),
54
Input("post-js-scripts", "id"),
55
)
56
+ # Provide user-friendly access instructions
57
+ host = os.getenv("HOST", "127.0.0.1")
58
+ port = os.getenv("PORT", "8050")
59
+
60
+ print("\n" + "=" * 50)
61
+ print("NetMedEx Web Application Starting...")
62
+ if host == "0.0.0.0":
63
+ print(f"Listening on all interfaces (0.0.0.0:{port})")
64
+ print(f"👉 To access the app, open: http://localhost:{port}")
65
+ else:
66
+ print(f"👉 Access the app at: http://{host}:{port}")
67
+ print("=" * 50 + "\n")
68
69
app.run(
- host=os.getenv("HOST", "127.0.0.1"),
- port=os.getenv("PORT", "8050"),
70
+ host=host,
71
+ port=port,
72
debug=(os.getenv("FLASK_DEBUG") == "true"),
73
74
finally:
0 commit comments