Running Flask-Python Application


#1

Hello, I am unable to run flask-python web application. Below is the screen. Please let me know what is missing. Thank you.


#2

You need to run your server in 0.0.0.0 using port 8080 (or other available C9 ports).

Change your app.run() command to something like this:

app.run(host='0.0.0.0', port=8080, debug=True)

If 8080 doesn’t work, try with 80.


#3

Use the IP and PORT environment variables set by c9, they are the recommended ones and are open.


#4

Thank you so much. It is now working :slight_smile: