【发布时间】:2015-03-23 22:08:42
【问题描述】:
我一直在尝试重新部署托管在 Heroku 上的应用。
在每次重新部署时,我都会收到“您的应用已成功部署。”
但是在打开页面时我得到了:
An error occurred in the application and your page could not be served.
Please try again in a few moments.
If you are the application owner, check your logs for details.
在打开“活动”标签下的日志时,给了我日志,但它并没有说明出了什么问题。
如何知道导致应用程序错误的原因。
【问题讨论】:
-
你用的是快递吗?
-
.. 如果您使用的是 express,您可能希望
console.log堆栈跟踪如下:github.com/TheIronDeveloper/pokemon-wondertrade-analytics/blob/… -
是的,使用 expressjs。我会试试的。
标签: node.js logging heroku error-logging