From 3a5d7a2b9285eb5c3baccd601f9afd977f410a52 Mon Sep 17 00:00:00 2001 From: Kemi-Elizabeth <97071326+Kemi-Elizabeth@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:25:22 +0100 Subject: [PATCH 1/2] Swapped 5 and 6 around Swapped steps 5 and 6 in instructions for default environments --- .../src/environments/default-environment.md | 19 +++++++++--------- .../src/environments/default-environment.md | 20 +++++++++---------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/sites/platform/src/environments/default-environment.md b/sites/platform/src/environments/default-environment.md index dbb28609d7..f8d37401cb 100644 --- a/sites/platform/src/environments/default-environment.md +++ b/sites/platform/src/environments/default-environment.md @@ -119,16 +119,8 @@ 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 >}} +++ @@ -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..352916446c 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 >}} +++ @@ -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, From 139c3ce7bec34a9b0900d2e64f6a77d8a87a2411 Mon Sep 17 00:00:00 2001 From: Kemi-Elizabeth <97071326+Kemi-Elizabeth@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:20:25 +0100 Subject: [PATCH 2/2] Removed sentence Removed sentence in default environments step 5 --- sites/platform/src/environments/default-environment.md | 2 +- sites/upsun/src/environments/default-environment.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/platform/src/environments/default-environment.md b/sites/platform/src/environments/default-environment.md index f8d37401cb..a535a70d31 100644 --- a/sites/platform/src/environments/default-environment.md +++ b/sites/platform/src/environments/default-environment.md @@ -127,7 +127,7 @@ Once you resubmit a request, it appears under the `main` environment on {{% vend 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 diff --git a/sites/upsun/src/environments/default-environment.md b/sites/upsun/src/environments/default-environment.md index 352916446c..c636a8eec4 100644 --- a/sites/upsun/src/environments/default-environment.md +++ b/sites/upsun/src/environments/default-environment.md @@ -137,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