java - 当我在 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 代码中的确切问题。有什么想法或自己的经验吗?谢谢
我得到的日志
解决方案
这是您的错误文本:
“ no main manifest attribute, in target /ProPetsAccountingService-0.0.1-SNAPSHOT.jar
”
注意这个问题的答案:
Can't execute jar-file: "no main manifest attribute"
或检查“Procfile”中列出的内容。
推荐阅读
- ruby-on-rails - 为什么 POST 请求中的 access-token 会不断变化?
- typescript - 如何通过 TypeScript 中的类型来描述元组数组中元组元素之间的关系?
- php - 从文件中导入 php 类
- google-cloud-platform - 我应该如何更改查询以便对 BigQuery 中数组的每条记录应用函数?
- python - 为什么pywt小波变换的输出是复数数组?
- java - 如何在 Atlas 中使用标签过滤
- shopify - 在 Shopify 产品描述中隐藏文本
- gem5 - 无法在 Gem5 核心转储问题上运行 SpectreSafeInvisibleSpec 方案
- linux - 如何从 tar.gz 中仅提取所需的文件?
- operating-system - 内页表缺页是否会产生缺页?