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

前端 未结 6 1596
迷失自我
迷失自我 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:31

    I had the main entry in package.json pointing at the wrong directory. Ensure it is pointed to the build output directory. As for my case, I had the server file in the /bin folder so I set my package.json

    {
      "main": "build/bin/www.js"
      "scripts": {
        "start": "node ."
      }
    }
    

提交回复
热议问题