Skip to content

Commit

Permalink
fixed bugs in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed Feb 1, 2024
1 parent b083c72 commit 6a012cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a012cf

Please sign in to comment.