Heroku Node.js webapp部署失败

时间:2017-01-27 14:16:32

标签: node.js heroku

  

我尝试在本地计算机上运行heruko部署Web应用程序,但是当我部署此应用程序时会产生错误

2017-01-27T13:42:43.125439+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:579:10)
2017-01-27T13:42:43.125439+00:00 app[web.1]:     at Module.load (module.js:487:32)
2017-01-27T13:42:43.125440+00:00 app[web.1]:     at tryModuleLoad (module.js:446:12)
2017-01-27T13:42:43.125440+00:00 app[web.1]:     at Function.Module._load (module.js:438:3)
2017-01-27T13:42:43.125441+00:00 app[web.1]:     at Module.runMain (module.js:604:10)
2017-01-27T13:42:43.125441+00:00 app[web.1]:     at run (bootstrap_node.js:394:7)
2017-01-27T13:42:43.125441+00:00 app[web.1]:     at startup (bootstrap_node.js:149:9)
2017-01-27T13:42:43.125442+00:00 app[web.1]:     at bootstrap_node.js:509:3
2017-01-27T13:42:43.216637+00:00 heroku[web.1]: State changed from starting to crashed
2017-01-27T13:44:09.044136+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=chokey2.herokuapp.com request_id=b7445c6c-7a17-4b31-b499-4e1a0e60d6b2 fwd="122.164.248.106" dyno= connect= service= status=503 bytes=
2017-01-27T13:44:10.071959+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=chokey2.herokuapp.com request_id=0b25572e-f99e-4b26-b534-222599cf80a1 fwd="122.164.248.106" dyno= connect= service= status=503 bytes=
  

Procfile

web: node server.js

我不知道为什么会发生这种情况。

0 个答案:

没有答案