gpt4 book ai didi

java - 当我在 Heroku 上部署我的一项服务时出现“应用程序错误”

转载 作者:行者123 更新时间:2023-12-01 16:18:22 25 4
gpt4 key购买 nike

有一个问题我确实需要帮助来解决。
我没有太多使用 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 代码中的问题到底是什么。有什么想法或自己的经验吗?谢谢

我得到的日志

最佳答案

这是您的错误文本:
目标/ProPetsAccountingService-0.0.1-SNAPSHOT.jar 中没有主要 list 属性

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

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

关于java - 当我在 Heroku 上部署我的一项服务时出现“应用程序错误”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62341458/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com