【发布时间】:2019-07-02 03:44:26
【问题描述】:
我正在使用 Docker 容器部署一个 .Net Core 应用程序。
我可以使用heroku container:push web成功推送图片
但是调用heroku container:release web 会返回No command specified for process type web。
我有点难过我试过添加heroku.yml
setup:
addons:
- plan: heroku-postgresql
as: DATABASE
build:
docker:
web: Dockerfile
config:
ASPNETCORE_ENVIRONMENT: development
run:
web: dotnet Api.dll
在根目录上,但仍然没有运气。
我可以确认图像已创建,我在 docker 中看到了这个
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.heroku.com/immense-temple-11020/web latest 5cb62a9af317 16 minutes ago 272MB
如果有人能指出我正确的方向,将不胜感激。谢谢!
【问题讨论】:
-
你可能需要在你的heroku文件中添加发布部分,你能显示完整的heroku.yml文件吗?
-
嗨@captainchhala 完整的heroku.yml 是我上面包含的那个。感谢您的回复。
-
你运行了什么命令来查看推送的图像?
-
@LoganYang
heroku container:release web -a <name of app>查看详情devcenter.heroku.com/articles/container-registry-and-runtime