nginx - 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
任何帮助表示赞赏,谢谢。
解决方案
推荐阅读
- spring-boot - 如何通过使用 ExecutorService 和 CompletableFuture 控制线程数,在 Spring Flux 中立即向客户端返回响应?
- sql - Oracle 中的 DBMS_ASSERT.enquote_name()
- reactjs - 将 ag-grid 的方向更改为 RTL
- android - android中的BiometricPrompt不支持退出按钮
- swift - 获取数据,将其存储在可观察对象中并在视图中使用
- javascript - DynamoDB 向现有表添加全局二级索引
- python - 我应该使用哪种字符串度量或 NLP 算法来查找不同 URL 中的子字符串
- vue.js - 带有 axios 数据的组件生命周期
- c++ - std::string 可以作为 nlohmann::json 传递给显式构造函数
- r - 如何用另一个数据框的单元格值填充/填充数据框列