应用程序错误和日志未加载,应采取什么步骤?

Application error and logs not loading, what steps to take?

我在访问我的应用程序时收到以下错误页面:

Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail

然而,heroku logs --tail 没有 return 任何东西。如果我通过网络 (https://dashboard.heroku.com/apps/app-name/logs) 转到仪表板,日志 window 会继续加载,但没有显示任何内容。

我无事可做,Heroku 不接受免费应用的票。有谁知道我可以采取更多步骤来跟踪错误?

附加信息:

我有同样的问题。我刚刚将 system.properties 添加到 spring 应用程序的根文件夹,该文件包含 1 行:

java.runtime.version=11

Heroku procfile documentation.

Spring documentation for Heroku deployment