I have a question about an application based on CloudFoundry. Until now we had random routes (via ports) on any environment. Now there is a requirement that on each environment (dev, test, prod) always the same port is used, so that the recipients do not have to change the URL every time. So far we do this after each deployment via the console via "cf map-route ..." .
Is there any way to do this statically via config/yaml file? Is it possible to specify environment specific variables in the YAML? Example:
- name: odata_kbs_sv-app
type: html5
path: app
parameters:
port: ~{specificPort}
[...]
when space = 'DEV' then specificPort = 55555 etc.
thanks.