我使用 docker 成功部署了一个 .Net Core 3.1 应用程序示例到 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 logs --tail 命令时,我收到此错误:缺少必需的标志:-a,--app APP 应用程序运行命令。
请问,我如何才能进一步了解错误描述 ?
最佳答案
错误信息不是很详细,但幸运的是解决方案其实很简单!
就在上面,您运行了命令 heroku container:release web -a blinkytest
。在此命令中,您指定了应用 blinkytest
。您必须对 heroku logs --tail
执行相同的操作,所以如果您执行 heroku logs --tail -a blinkytest
应该为您完成!
关于docker - 使用 .Net Core 3.1 api (docker) 运行 Heroku 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64490070/
相关文章:
f# - 如何使用 FSharp.Compiler.Service 从 F# 字符串中获取 F# A
java - 对于 IntelliJ 中的 Java 项目,Run 命令究竟做了什么?从 ./mvn
graphql - 在 Gatsby 上渲染 Contentful Reference (many)
google-sheets - 如何让条形图数据标签在谷歌表格中显示值和百分比(总数)?
django - 如何使用 Django Rest Framework 将上传进度条与 s3 存储桶
reactjs - 如何使用代理将 Flask API 和 React 前端微服务部署到 Googl