使用 cf push 部署应用到 SAP BTP 后启动失败 s
2021-09-01 本文已影响0人
华山令狐冲
cf push 将应用部署到 SAP Business Technology Platform 之后,应用状态处于 crashed:
![](https://img.haomeiwen.com/i2085791/f7dca3689f745d50.png)
使用如下命令查询其启动日志:cf logs product-list --recent
发现缺少 passport 依赖:
![](https://img.haomeiwen.com/i2085791/d98bec1b0b5e569d.png)
在 package.json 里手动添加依赖,问题消失:
![](https://img.haomeiwen.com/i2085791/8cc52d84ec382481.png)
现在状态为 running:
![](https://img.haomeiwen.com/i2085791/75296630fc6d994e.png)
更多Jerry的原创文章,尽在:"汪子熙":
![](https://img.haomeiwen.com/i2085791/97c4752c0e619c44.png)