我在部署到Heroku后试图运行应用程序时遇到以下错误。我无法弄清楚错误是什么,因为部署是成功的。
2017-08-08T19:58:15.400596+00:00 app[web.1]: npm ERR! node ./bin/www
2017-08-08T19:58:15.400766+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:
2017-08-08T19:58:15.400935+00:00 app[web.1]: npm ERR! npm bugs watchhours
2017-08-08T19:58:15.401099+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:
2017-08-08T19:58:15.401267+00:00 app[web.1]: npm ERR! npm owner ls watchhours
2017-08-08T19:58:15.401434+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2017-08-08T19:58:15.407305+00:00 app[web.1]:
2017-08-08T19:58:15.407919+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2017-08-08T19:58:15.408104+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2017-08-08T19:58:15.497534+00:00 heroku[web.1]: State changed from starting to crashed
2017-08-08T19:58:15.483131+00:00 heroku[web.1]: Process exited with status 1
2017-08-08T19:58:28.070249+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=watch-hours.herokuapp.com request_id=08648f85-8ff8-4496-a1d0-4a59b656394b fwd="117.214.91.103" dyno= connect= service= status=503 bytes= protocol=https
2017-08-08T19:58:28.710982+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=watch-hours.herokuapp.com request_id=348cafa0-abb3-411f-a460-fdc52165e94f fwd="117.214.91.103" dyno= connect= service= status=503 bytes= protocol=https
答案 0 :(得分:1)
如果您登录heroku,您可以看到项目的日志...您的错误很可能就在那里:https://dashboard.heroku.com/apps/you-app-name/logs