From 4ff03b3eadc51c6a22339fa8b87d513eb633f5df Mon Sep 17 00:00:00 2001 From: Kemi Elizabeth <97071326+Kemi-Elizabeth@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:06:51 +0100 Subject: [PATCH] Swapped 5 and 6 around (#4204) * Swapped 5 and 6 around Swapped steps 5 and 6 in instructions for default environments * Removed sentence Removed sentence in default environments step 5 --------- Co-authored-by: Chad Carlson --- .../src/environments/default-environment.md | 21 +++++++++--------- .../src/environments/default-environment.md | 22 +++++++++---------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/sites/platform/src/environments/default-environment.md b/sites/platform/src/environments/default-environment.md index dbb28609d7..a535a70d31 100644 --- a/sites/platform/src/environments/default-environment.md +++ b/sites/platform/src/environments/default-environment.md @@ -119,23 +119,15 @@ Once you resubmit a request, it appears under the `main` environment on {{% vend {{< /codetabs >}} -## 5. Deactivate the `old` branch -To change your default branch, you first need to deactivate the existing default branch to remove protections. -Deactivate the `old` environment without deleting it by running the following CLI command: - -```bash -{{% vendor/cli %}} environment:delete --no-delete-branch old -``` - -## 6. Set `main` as the default branch +## 5. Set `main` as the default branch {{< codetabs >}} +++ title=Without a source integration +++ -Once `old` has been deactivated, set the project's default branch to `main`: +Set the project's default branch to `main`: ```bash {{% vendor/cli %}} project:info default_branch main @@ -160,6 +152,15 @@ Follow the instructions to change the default branch to `main` for your provider {{< /codetabs >}} +## 6. Deactivate the `old` branch + +To change your default branch, you first need to deactivate the existing default branch to remove protections. +Deactivate the `old` environment without deleting it by running the following CLI command: + +```bash +{{% vendor/cli %}} environment:delete --no-delete-branch old +``` + ## 7. Update DNS records Whether or not you're using a CDN, diff --git a/sites/upsun/src/environments/default-environment.md b/sites/upsun/src/environments/default-environment.md index dbb28609d7..c636a8eec4 100644 --- a/sites/upsun/src/environments/default-environment.md +++ b/sites/upsun/src/environments/default-environment.md @@ -119,16 +119,7 @@ Once you resubmit a request, it appears under the `main` environment on {{% vend {{< /codetabs >}} -## 5. Deactivate the `old` branch - -To change your default branch, you first need to deactivate the existing default branch to remove protections. -Deactivate the `old` environment without deleting it by running the following CLI command: - -```bash -{{% vendor/cli %}} environment:delete --no-delete-branch old -``` - -## 6. Set `main` as the default branch +## 5. Set `main` as the default branch {{< codetabs >}} +++ @@ -146,7 +137,7 @@ Once `old` has been deactivated, set the project's default branch to `main`: title=With a source integration +++ -Once `old` has been deactivated, set the project's default branch in {{% vendor/name %}} to `main`: +Set the project's default branch in {{% vendor/name %}} to `main`: ```bash {{% vendor/cli %}} project:info default_branch main @@ -160,6 +151,15 @@ Follow the instructions to change the default branch to `main` for your provider {{< /codetabs >}} +## 6. Deactivate the `old` branch + +To change your default branch, you first need to deactivate the existing default branch to remove protections. +Deactivate the `old` environment without deleting it by running the following CLI command: + +```bash +{{% vendor/cli %}} environment:delete --no-delete-branch old +``` + ## 7. Update DNS records Whether or not you're using a CDN,