我们有以下两个端点,有各自的组织和空间
1)开发环境:
a.b.c.org.cloud
2)概念证明环境(POC):a.b.c.poc.io
在 POC 环境中运行一个my-cool-app
带有路由名称的 app( )。my-cool-app.a.b.c.poc.io
由于此应用程序中的代码异味问题,路由名称由应用程序源代码(硬编码)决定,而不是通过manifest.yml
. cf push
这导致开发环境中的my-cool-app.a.b.c.poc.io
路由 名称相同。my-cool-app
my-cool-app.a.b.c.poc.io
1) 应用程序在开发环境( ) 中可以有相同的路由名称a.b.c.org.cloud
吗?org.cloudfoundry.client.v2.ClientV2Exception: CF-InvalidRelation(1002): The app cannot be mapped to this route because the route is not in this space. Apps must be mapped to routes in the same space.
因为我们在之后看到这个错误cf push
2) Dev 和 POC 环境是否有相同的云控制器数据库(CCDB)?因为 CCDB 维护 app name 与 routename 的绑定