Node app on Heroku - "Application Error”

Hi guys,

As what the title shows, I am having a similar issue from a past forum.

this is from my heroku logs

2020-09-25T05:05:16.000000+00:00 app[api]: Build started by user ‘hal1993@hotmail.com’
2020-09-25T05:05:46.225189+00:00 app[api]: Release v9 created by user ‘hal1993@hotmail.com’
2020-09-25T05:05:46.225189+00:00 app[api]: Deploy b2636a09 by user ‘hal1993@hotmail.com’
2020-09-25T05:05:46.575422+00:00 heroku[web.1]: State changed from crashed to starting
2020-09-25T05:05:48.000000+00:00 app[api]: Build succeeded
2020-09-25T05:05:50.406048+00:00 heroku[web.1]: Starting process with command node server.js
2020-09-25T05:05:53.339018+00:00 heroku[web.1]: Process exited with status 1
2020-09-25T05:05:53.401702+00:00 heroku[web.1]: State changed from starting to crashed
2020-09-25T05:05:53.404382+00:00 heroku[web.1]: State changed from crashed to starting
2020-09-25T05:05:58.027283+00:00 heroku[web.1]: Starting process with command node server.js
2020-09-25T05:06:00.831185+00:00 heroku[web.1]: Process exited with status 1
2020-09-25T05:06:00.864090+00:00 heroku[web.1]: State changed from starting to crashed
2020-09-25T05:06:01.884001+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/"
request_id=8e6f07a9-f85e-4c59-8f74-1cfcf991857f fwd=“116.88.43.115” dyno= connect= service= status=503 bytes= protocol=https
2020-09-25T05:06:02.327891+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/favicon.ico"
request_id=87a64f7e-11d6-463a-8836-98957ebd6a47 fwd=“116.88.43.115” dyno= connect= service= status=503 bytes= protocol=https
2020-09-25T05:07:00.198474+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/"
request_id=86a41507-9864-4647-955f-296cba81e503 fwd=“116.88.43.115” dyno= connect= service= status=503 bytes= protocol=https
2020-09-25T05:07:01.204351+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/favicon.ico"
request_id=34682ef5-304c-440d-9f96-845ccc684ef4 fwd=“116.88.43.115” dyno= connect= service= status=503 bytes= protocol=https

i removed the host from the logs as at the moment i could only post 2 links at a time, but if need to know its directed to the website thats all

you can view my repo here :

Problem solved from stackoverflow. Check it here (https://stackoverflow.com/questions/64094255/application-error-when-deploying-website-to-heroku)