首页 > 解决方案 > Cloud Foundry - 更新到 NGINX buildpack - 部署期间出现 500 错误

问题描述

我目前正在将我的 Angular 应用程序的 Cloud Foundry buildpack 从已弃用的 staticfile-buildpack-v2 更新到 NGINX buildpack。

我一直在使用此处列出的更新语法更新我的 nginx.conf:

https://docs.cloudfoundry.org/buildpacks/nginx/

构建正在通过,应用程序正在推送到 PCF,但 Cloud Foundry 无法找到应用程序根目录,并且每次访问托管它的 URL 时都会收到 500 错误。

基本上我要问的是我的 nginx.conf 文件有什么问题,它不允许 NGINX 找到我的应用程序根目录。

我在这里上传了我的 nginx.conf、buildpack.yml、manifest.yml 和 mime.types 文件:

https://github.com/boldham31/buildpack-fix/tree/master

任何帮助表示赞赏,谢谢。

标签: nginxenvironment-variablescloud-foundrynginx-configbuildpack

解决方案


推荐阅读