How to change the default domain for apps?


Martin Schröder <martin.schroeder at sap.com...>
 

Hi,

I have added an additional domain to my CF installation as shared domain.
Now I want to have that new domain as default, so that app developers do not need to specify the domain during cf push or in their manifest.
How can this be done? As far as I know, the default for CF is to take the first shared domain.
But the new one is second in the list.
One idea I had is to delete the old domain and immediately recreate it hoping that it then will be second in the list after the other domain.
But will the deletion of a domain remove all routes belonging to it?

Any hints are well appreciated.

Martin


CF Runtime
 

The API doesn't have a concept of default shared domain currently. You are
correct that the cf CLI simply takes the first shared domain and uses it
when developers do a `cf push`.

Deleting the old domain and recreating it will work, but as you guessed,
deleting the domain will also delete all the routes that belong to it.

Unfortunately I can't think of any better solutions for you.

Joseph
CF Release Integration Team

On Fri, Sep 18, 2015 at 2:59 AM, Martin Schröder <martin.schroeder(a)sap.com>
wrote:

Hi,

I have added an additional domain to my CF installation as shared domain.
Now I want to have that new domain as default, so that app developers do
not need to specify the domain during cf push or in their manifest.
How can this be done? As far as I know, the default for CF is to take the
first shared domain.
But the new one is second in the list.
One idea I had is to delete the old domain and immediately recreate it
hoping that it then will be second in the list after the other domain.
But will the deletion of a domain remove all routes belonging to it?

Any hints are well appreciated.

Martin