Skip to content

Commit 6353ae7

Browse files
committed
fix: evaluate HOST, PORT, and PROXY when Dash.run is invoked, fixes #2902
1 parent bbd013c commit 6353ae7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dash/dash.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,12 @@ def run(
21092109
dev_tools_prune_errors,
21102110
)
21112111

2112+
# Evaluate the env variables at runtime
2113+
2114+
host = os.getenv("HOST", host)
2115+
port = os.getenv("PORT", port)
2116+
proxy = os.getenv("DASH_PROXY", proxy)
2117+
21122118
# Verify port value
21132119
try:
21142120
port = int(port)

0 commit comments

Comments
 (0)