【发布时间】: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