Skip to content

Commit

Permalink
Swapped 5 and 6 around (#4204)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
Kemi-Elizabeth and chadwcarlson authored Sep 27, 2024
1 parent 4d8d0d3 commit 4ff03b3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
21 changes: 11 additions & 10 deletions sites/platform/src/environments/default-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
22 changes: 11 additions & 11 deletions sites/upsun/src/environments/default-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 >}}
+++
Expand All @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 4ff03b3

Please sign in to comment.