I am trying to deploy my flask app to render but I keep getting this warning
==> Port scan timeout reached, failed to detect open port 9999 from PORT environment variable. Bind your service to port 9999 or update the PORT environment variable to the correct port.
Until it eventually times out and the deployment fails
What I have done so far
- I have set a port number as env thus the 9999.
- I have configured my app so it listens to 0.0.0.0 not 127.0.0.1
app.run(debug=True,host=‘0.0.0.0’,port=os.getenv(‘PORT’))
But all these have not borne any fruit.
Please what exactly is the issue?