Deploying your changes
You're building a great feature that requires tweaking your layout (UI), you've used the Layout Editor and it looks just like you had imagined? Well now is the time to stage it to an upper Environment.
Imagine this is your current situation:
This would be the case if you chose "Staging" as the origin of your branch when you first created it. You have then made layout changes (Δ) over it.
The result is the following:
As all your environments' layouts depend on your reference environment, the
deploycommand will apply the layout changes to all your project environments. In the example above, your layout changes are also applied to the Remote Environment, as it is based on Production.
Deploy with care as such action cannot be reverted.
Let’s say that before the deployment to Production, you want to test and validate your charges on a staging environment.
Pushing your changes from your local Branch will automatically delete it.
As your company grows, so does your development flow. You may need a more complex hierarchy between environments where you have more than one layer of test environments before production (test, staging, qa, preprod,...). This is possible using the Forest Admin CLI and the right Environment settings, see here.
Once you have tested your new layout on "Remote 1", you can't deploy your Branch layout to "Production", as your Branch has been deleted by the action of pushing it to "Remote 1".
To deploy it from this Environment, simply click on "Deploy to production" in the top banner of your Environment layout.
Imagine you have pushed a Branch layout changes onto a Remote Environment, but notice a slight change is still required in the layout. You can apply the final touches using the Layout Editor from the Remote Environment. It will be applied on top of your Branch layout changes; any changes you make on that Remote Environment will also be deployed when you decide to run
You can also create a new branch with your Remote Environment as the origin and do the process explained above.