Heroku code=H10 desc=“App crashed” - Can't figure out why it's crashing

前端 未结 6 1668
迷失自我
迷失自我 2020-12-09 08:50

I\'ve been searching around on this one for a while and can\'t find anything that seems to be applicable in my situation. I\'ve been staring at these logs and I can\'t see w

6条回答
  •  悲哀的现实
    2020-12-09 09:39

    In my case it was because I was hardcoding the port to be used,

    I changed using this, and it worked

    app.listen(process.env.PORT || 3000);
    

提交回复
热议问题