R
Railway11mo ago
! SAM

Flask app wont work with port 0.0.0.0

application not responding
Solution:
you don't want to be using flasks in-built developer server, please reference this template https://github.com/alphasecio/flask/tree/main you need to use gunicorn to run your flask app...
Jump to solution
3 Replies
Percy
Percy11mo ago
Project ID: 176ba294-2575-4688-9d63-fae15b879106
!                            SAM
! SAM11mo ago
app.run(host="0.0.0.0")

app.run(host="0.0.0.0", port='5000')
app.run(host="0.0.0.0")

app.run(host="0.0.0.0", port='5000')
tried these all doesnt work ah shit it worked sorry
Solution
Brody
Brody11mo ago
you don't want to be using flasks in-built developer server, please reference this template https://github.com/alphasecio/flask/tree/main you need to use gunicorn to run your flask app