Migrating from Theme Settings UI to PageBuilder Deployer
This guide walks you through changing settings locally and deploying your changes using the PageBuilder Deployer UI.
Prerequisites
- A local development environment
- Access to the PageBuilder Deployer UI in your Arc XP organization
Download your live bundle
To download your live bundle, take the following steps:
- On the top-right of the Arc XP dashboard, select the environment you want to deploy to from the drop-down menu
- Click the PageBuilder Editor tile in the Arc XP dashboard
- On the top navigation menu, click the Developer Tools tab to expose the submenu
- On the submenu, click the Deployer tab
- The Deployer section opens and lists running and uploaded bundles. The
live
bundle appears first on the list in the running bundles section.
- The Deployer section opens and lists running and uploaded bundles. The
- On the top right of your live bundle, click the
***
button. - Click the Download option
- Your browser downloads a timestamped
zip
file.
- Your browser downloads a timestamped
Modify Arc Blocks settings
Using an IDE or a code editor, open the blocks.json
file located in the root directory of your project. This contains key-value pairs that the Theme Settings UI updated during the last deployment, using values from the input fields. You can directly modify the blocks.json
file to change your Arc Blocks settings.
The following table describes the keys and values that must be in the blocks.json
file to ensure successful deployments with PageBuilder Deployer.
KEY | DESCRIPTION | REFERENCE VALUE |
---|---|---|
themesReleaseVersion (string) | The Themes version to use in your deployment | arc-themes-release-version-2.4.1 |
themeComponents (string) | Specifies and enables the use of arc-themes React components to build custom blocks | @wpmedia/arc-themes-components |
theme (string) | Specifies the default style for the website. Arc XP currently only supports the News theme. | news |
blocks (array) | Lists the blocks available in your bundle | See the blocks.json example file for a complete list |
siteProperties (object) | key-value pairs to configure site properties | See the blocks.json example for example values |
Zip your bundle
Before zipping your bundle, start the Docker daemon by opening the Docker Desktop application. See Setting Up Your Dev Playground for Docker resources requirements.
From the root directory of your project, run the following command:
npx fusion zip
This command will build your code and create a timestamped .zip
file in the /dist/
directory.
Deploy your bundle with PageBuilder Deployer
To upload your bundle and deploy your changes using PageBuilder Deployer, take the following steps:
- On the top-right of the Arc XP dashboard, select the environment you want to deploy to from the drop-down menu
- Click the PageBuilder Editor tile in the Arc XP dashboard
- The PageBuilder Pages section displays
- On the top navigation menu, click the Developer Tools tab to expose the submenu
- On the submenu, click the Deployer tab
- The Deployer section opens and lists running and uploaded bundles.
- In the uploaded bundles section, click the Upload Bundle button
- The Upload Bundle panel appears
- Provide a name for your bundle in the Bundle Name text field
- Click the Upload Bundle button
- A system file explorer window opens
- Navigate to your project’s
/dist/
directory - Select the bundle zip file you created in the previous step
- On the bottom of the Upload Bundle panel, click the Upload Bundle button
- Your bundle shows in the uploaded bundles list with the
Unused
badge.
- Your bundle shows in the uploaded bundles list with the
- On the top right of your uploaded bundle, click the
***
button - Click the deploy option.