【问题标题】:Error running Heroku with .Net Core 3.1 api (docker)使用 .Net Core 3.1 api (docker) 运行 Heroku 时出错
【发布时间】:2021-02-05 22:22:45
【问题描述】:

我使用 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 命令时,我收到这个错误:missing required flag: -a, --app APP app to run command against. 请问,我怎样才能看到更多的错误描述?

【问题讨论】:

  • 我没有和 Heroku 合作过,这是最好的选择吗?
  • Heroku 提供了一个免费帐户来使用 docker 部署 .NetCore api。
  • heroku 日志 --app APP_NAME 来自 APP_NAME.herokuapp.com

标签: docker heroku asp.net-core-webapi


【解决方案1】:

错误信息描述性不是很强,但好在解决方法其实很简单!

就在上面,您运行了命令heroku container:release web -a blinkytest。在此命令中,您指定了应用程序 blinkytest。你必须为heroku logs --tail 做同样的事情,所以如果你做heroku logs --tail -a blinkytest 那应该为你做!

【讨论】:

    猜你喜欢
    • 2022-01-19
    • 1970-01-01
    • 1970-01-01
    • 2021-10-16
    • 2020-12-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-03
    相关资源
    最近更新 更多