Mule4 踩坑记 cloudHub 简单部署

其实这俩坑都在文档里面,为了查找节省时间,记录在这

部署很简单,直接在project上面右键->anypoint platform -> deploy to cloudhub 就成

坑1 502 bad gateway

部署完成后 ping url 得到 bad Gateway 错误

这个错误是因为你的 “http listener config” 是local 配置。 此时 更改 http host 为 “0.0.0.0”, port 改为 “#{http.port}” 再重新部署就可以

Mule4 踩坑记 cloudHub 简单部署

坑2: 504 gateway time out 

这个是mule 在为你准备url映射没有结束,虽然console 上显示是部署完成,等个1~2分钟重试就行