What is the best practices of migration from local to remote?

I’ve made many modifications to CSS Classes/Variables and added/updated some Bricks Templates on my local environment. Since the changes to Classes/Variables were quite extensive, I decided to delete everything on the remote server first, and then import the new ones.

Unfortunately, this led to a disaster - all the classes/variables set within Templates disappeared, forcing me to re-import all templates from my local environment.

After importing the Bricks Templates, I discovered that the remote server now had duplicate templates with the same names, rather than overwriting the existing ones. So I had to delete the old ones manually. Then I encountered two more issues:

  1. After loading the overwritten templates, all previously set Template Conditions disappeared and needed to be reconfigured.
  2. All custom code in Code elements was being rendered as raw code. Regenerating the signature’s code in Bricks admin settings didn’t help, so I had to manually check “Execute code” for each Code element.

This has been extremely frustrating. I’ve searched for Bricks Builder migration strategies, but couldn’t find any comprehensive step-by-step solutions.

Is it really not possible for Bricks to provide a one-click Backup&Restore/Migration feature for CSS Classes/Variables, Templates, and other Bricks-related settings in the admin panel??

Or does the official team provide any detailed documentation on how to effectively perform migrations?

1 Like