-2

I have made face recognisation using OpenCv, mediapipe and python. I created backend using flask and this is working completely fine on my PC but on deploying it on heroku is creating a error(code=H10). Can anyone please fix this error?

2022-02-20T09:03:40.710031+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=herokubkl.herokuapp.com request_id=67efdb2a-92e6-4304-ac32-2ac913a3d856 fwd="223.177.45.56" dyno=web.1 connect=5001ms service= status=503 bytes= protocol=https

https://github.com/rawsome24/Zeet-Deployement-Test

1 Answers1

0

You need to bind the port provided by Heroku

p = int(os.environ.get("PORT", 5000))
app.run(debug=True, port=p, host='0.0.0.0')
Beppe C
  • 11,256
  • 2
  • 19
  • 41