Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc: updating vtex-io-documentation-migrating-cms-settings-after-major-updat… #906

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,29 @@ To handle this situation and ensure a smooth migration, follow the steps below t
## Instructions

1. Open the terminal and log in to your account.
2. Change to the **production workspace** containing your latest changes and [publish](https://developers.vtex.com/docs/guides/vtex-io-documentation-making-your-new-app-version-publicly-available#step-2---publishing-the-new-app-version) a new major version of your Store Theme app.
3. Create a new production workspace by running the following command:

>ℹ️ Replace the values in curly brackets with the values that apply to your scenario.

```sh
vtex use {workspaceName} --production
```

4. Install the Store Theme app published in the previous steps:
2. [Change to the **production workspace**](https://developers.vtex.com/docs/guides/vtex-io-documentation-creating-a-production-workspace) containing your latest changes and [publish](https://developers.vtex.com/docs/guides/vtex-io-documentation-making-your-new-app-version-publicly-available#step-2---publishing-the-new-app-version) a new major version of your Store Theme app.
3. In the production workspace, install the Store Theme version published in the previous steps:

```sh
vtex install {appVendor}.{appName}@{appVersion}
```

5. Open the VTEX Admin using the workspace created in Step 3 and go to the **GraphQL Admin IDE**:
4. Open the VTEX Admin of the production workspace used in the previous steps and go to the **GraphQL Admin IDE**:

```sh
vtex browse admin/graphql-ide
```

6. From the **Choose an app** dropdown list, select `vtex.pages-graphql@2.x`.
7. Copy the code below and paste it into the GraphQL IDE.
5. From the **Choose an app** dropdown list, select `vtex.pages-graphql@2.x`.
6. Copy the code below and paste it into the GraphQL IDE.

```gql
mutation{
updateThemeIds(from:"{appvendor}.{appname}@{oldmajor}.x", to:"{appvendor}.{appname}@{newmajor}.x")
updateThemeIds(from:"{appVendor}.{appName}@{oldMajor}.x", to:"{appVendor}.{appName}@{newMajor}.x")
}
```

8. Replace the values in curly brackets with the values that apply to your scenario, and press **Play**.
9. Open the VTEX Admin using the workspace created in the previous steps and validate the CMS content, routes, pages, and redirects.
10. Once you have validated your data, [promote your workspace to master](https://developers.vtex.com/docs/guides/vtex-io-documentation-promoting-a-workspace-to-master/).
>ℹ️ Replace the values in curly brackets with the values that apply to your scenario, then click **Play**.

7. Open the VTEX Admin of the production workspace used in the previous steps and validate the CMS content, routes, pages, and redirects.
8. Once you have validated your data, [promote your workspace to master](https://developers.vtex.com/docs/guides/vtex-io-documentation-promoting-a-workspace-to-master/).