I'm trying to deploy a wordpress app and when I apply the launch configuration I get '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' error. Does anyone know why?
Answer by Simon Kaegi (182) | Aug 16 at 11:05 AM
This issue might help explain what's going on... https://github.com/cloudfoundry/cli/issues/977
Cloud Foundry apps and routes are entities that live in your CF orgs and spaces. It sounds like the route you are trying to push to already exists in another org or space. The advice in the issue suggests to use the CLI to explore your orgs and spaces and that's also what I would do too.
e.g. use cf routes
in your various orgs to figure out where the route is defined and if necessary delete or possibly use a different route name in your application. See - https://docs.cloudfoundry.org/devguide/deploy-apps/routes-domains.html - for more info.