我的应用程序到Cloud Foundry的部署失败 [英] My app deployment to cloud foundry fails on
问题描述
我使用的命令是:ibmcloud target --cf
The command I used was: ibmcloud target --cf
我收到的错误如下:
----->完成Dotnet Core错误:无法安装dotnet运行时:找不到版本f dotnet运行时安装无法编译Droplet:无法运行定稿脚本:退出状态12退出状态223单元0f7012eb-9e32-4fdf-ba92-85aee4639139停止实例e5256fa6-702e-41f2-8c49-039400712a85单元格0f7012eb-9e32-4fdf-ba92-85aee4639139破坏了容器e5256fa6-702e-41f2-8c49-039400712a85错误登台应用程序:在构建包编译阶段中,应用登台失败失败
-----> Finalizing Dotnet Core ERROR Unable to install dotnet-runtime: could not find a version o f dotnet-runtime to install Failed to compile droplet: Failed to run finalize script: exit status 12 Exit status 223 Cell 0f7012eb-9e32-4fdf-ba92-85aee4639139 stopping instance e5256fa6-702e-41f 2-8c49-039400712a85 Cell 0f7012eb-9e32-4fdf-ba92-85aee4639139 destroying container for instance e 5256fa6-702e-41f2-8c49-039400712a85 Error staging application: App staging failed in the buildpack compile phase FAILED
推荐答案
经过大量的工作和人们的帮助,我发现我使用了错误的buildpack.如果您的应用程序是在ASP.Net Framework 4.5或更高版本中构建的,则需要使用hwc包.另外,您的manifest.yml也需要更改.这是我的manifest.yml.
应用程序:
- 名称:随机路由:正确记忆体:128Mbuildpack:https://github.com/cloudfoundry/hwc-buildpack.git环境:DOTNET_CLI_TELEMETRY_OPTOUT:1DOTNET_SKIP_FIRST_TIME_EXPERIENCE:是
这有效.创建工具链构建并部署.
This works. Create a toolchain build and deploy.
这篇关于我的应用程序到Cloud Foundry的部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!