From c107ac55ea083285e157ed5d83b74fc2aec39619 Mon Sep 17 00:00:00 2001 From: Andrea Arturo Venti Fuentes Date: Wed, 4 Jun 2025 17:36:51 -0400 Subject: [PATCH] Fix incorrect `ip` argument in app.run() Replaced `ip="0.0.0.0"` with `host="0.0.0.0"` in `main.py` to fix a TypeError during Flask startup. This change ensures compatibility with Flask's app.run() parameters and allows the app to bind to all interfaces as expected in production environments like Dokploy. ``` Traceback (most recent call last): File "/app/main.py", line 12, in app.run(debug=False, ip="0.0.0.0", port=5000) File "/opt/venv/lib/python3.12/site-packages/flask/app.py", line 625, in run * Serving Flask app 'main' * Debug mode: off run_simple(t.cast(str, host), port, self, **options) TypeError: run_simple() got an unexpected keyword argument 'ip' ``` --- Flask-Example/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flask-Example/main.py b/Flask-Example/main.py index 0a32f20..9370164 100644 --- a/Flask-Example/main.py +++ b/Flask-Example/main.py @@ -9,4 +9,4 @@ def hello_world(): if __name__ == '__main__': - app.run(debug=False, ip="0.0.0.0", port=5000) + app.run(debug=False, host="0.0.0.0", port=5000)