如何修复在 cf 推送期间无法在 https://github.com/cloudfoundry/nginx-buildpack.git 克隆 git 存储库

How to fix Failed to clone git repository at https://github.com/cloudfoundry/nginx-buildpack.git during cf push

当我尝试使用 nginx 构建包执行 cf 推送时,我得到

Failed to clone git repository at https://github.com/cloudfoundry/nginx-buildpack.git

我正在尝试使用 cf push 命令和清单文件部署我的 React 应用程序。

这是我的清单文件:

applications: - name: myapp memory: 64M path: ./build/ buildpacks: - https://github.com/cloudfoundry/nginx-buildpack.git

我希望能够使用 nginx-buildpack 部署应用程序。我做错了什么吗?

编辑:

当我尝试按名称引用 buildpack 时:nginx_buildpack,我得到:

**ERROR** Could not install nginx: Get https://buildpacks.cloudfoundry.org/dependencies/nginx/nginx-1.15.8-linux-x64-cflinuxfs2-a17501d0.tgz: read tcp 11.255.129.85:58762->194.209.222.197:443: read: connection reset by peer
   Failed to compile droplet: Failed to run all supply scripts: exit status 14

能否使用自定义 buildpack 取决于 cloudfoundry 平台配置,您需要联系您的 CF 环境的admin/support。