首页 > 解决方案 > 当我在 Heroku 上部署我的一项服务时出现“应用程序错误”

问题描述

有一个问题我真的需要帮助来解决它。
我没有太多使用 Heroku 的经验,但我曾经成功部署过一些应用程序。现在部署成功后,我尝试在浏览器中启动应用程序并收到此错误:

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 CLI 中检查的日志下方,但我仍然不明白我的应用程序 java 代码中的确切问题。有什么想法或自己的经验吗?谢谢

我得到的日志

标签: javawindowsrestherokudeployment

解决方案


这是您的错误文本:
no main manifest attribute, in target /ProPetsAccountingService-0.0.1-SNAPSHOT.jar

注意这个问题的答案:
Can't execute jar-file: "no main manifest attribute"

或检查“Procfile”中列出的内容。


推荐阅读