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

2fjabf4q  于 2021-09-13  发布在  Java
关注(0)|答案(1)|浏览(292)

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

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 不返回任何内容。如果我通过网络进入 Jmeter 板(https://dashboard.heroku.com/apps/app-name/logs),日志窗口将继续加载,但不会显示任何内容。
我没有什么要说的,heroku也不会接受免费应用的门票。有人知道我还可以采取哪些步骤来跟踪错误吗?
其他信息:
生成日志看起来都很好:

BUILD SUCCESSFUL in 49s
     5 actionable tasks: 5 executed
     Discovering process types
     Procfile declares types     -> (none)
     Default types for buildpack -> web
     Compressing...
     Done: 85.2M
     Launching...
     Released v3
     https://app-name.herokuapp.com/ deployed to Heroku

我正在创建一个SpringJavaAPI,当我尝试在本地运行它时,它工作得很好。如果我试着把它穿过去 $heroku local 我确实得到了一个错误:
[失败]在当前目录中找不到procfile和package.json文件-请参阅运行--帮助

new9mtju

new9mtju1#

我也有同样的问题。我刚才补充说 system.properties 到spring应用程序的根文件夹,此文件包含1行:

java.runtime.version=11

heroku procfile文档。
heroku部署的spring文档

相关问题