From 6a012cfab342560b68929a71d6f5edfb017fc9dd Mon Sep 17 00:00:00 2001 From: Hannes Hansen Date: Tue, 2 Jan 2024 16:46:55 +0100 Subject: [PATCH] fixed bugs in debug mode --- Dockerfile | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 214b3bd..5a91c9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,4 +13,4 @@ EXPOSE 5000 LABEL org.opencontainers.image.source https://github.com/SENERGY-Platform/analytics-flow-repo -CMD [ "python", "./main.py" ] +CMD [ "python", "-u", "./main.py" ] diff --git a/main.py b/main.py index 29cb420..c73339a 100644 --- a/main.py +++ b/main.py @@ -231,7 +231,7 @@ def fill_operator_info(flow, user_id) -> int : if bool(os.getenv('DEBUG', '')): if __name__ == "__main__": - app.run("127.0.0.1", 5000, debug=True) + app.run("0.0.0.0", 5000, debug=True) else: if __name__ == "__main__": from waitress import serve