Articles in this section

How to switch main environment with a child environment

You can switch your main environment and your child environment after project creation. To do so, please follow these steps. 

If you have a domain set for your default environment, remove it before changing the default branch. Otherwise you get an error that default domain must be a valid project domain.

To change the default branch, you need to be an admin for the project.

So, for example, if you environment tree looks like this:

  develop
  โ””โ”€โ”€ main

and you want to change things around so it looks like this:

  main
  โ””โ”€โ”€ develop


You can change do so, by changing the environment's parents with the following CLI commands:

  platform env:info -e main parent -
  platform env:info -e develop parent main

For further information about this, please visit our public documentation about how to change your default environment. 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.