Skip to content

Commit 1ed83be

Browse files
committed
Added host from env variable
1 parent 06baecd commit 1ed83be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tdamapper/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,10 @@ def main_page():
590590

591591
def main():
592592
port = os.getenv("PORT", "8080")
593+
host = os.getenv("HOST", "0.0.0.0")
593594
ui.run(
594595
storage_secret="secret",
596+
host=host,
595597
title="tda-mapper-app",
596598
favicon=ICON_URL,
597599
port=int(port),

0 commit comments

Comments
 (0)