Skip to content

Commit 6afbee6

Browse files
committed
port change
1 parent e69d8c0 commit 6afbee6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dash_altair_app.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import altair as alt
88
import query
99
from config import load_config_iam
10+
import os
1011

1112

1213
category_options = [
@@ -108,4 +109,6 @@ def update_graph(selected_cat1, selected_level1, selected_cat2, selected_level2)
108109

109110

110111
if __name__ == "__main__":
111-
app.run_server(debug=True)
112+
# Use the PORT environment variable if available, otherwise default to 8080
113+
port = int(os.environ.get("PORT", 8080))
114+
app.run_server(host="0.0.0.0", port=port)

0 commit comments

Comments
 (0)