Stage Production Pages Into Developer Account?

Howdy all, so i’ve figured out now to clone all my modules etc from my production account into my developer account with the CLI, but none of my website pages are there. Is there a way to stage pages from my production account into my developer account or do i just have to rebuild them from scratch in the developer account? My employer wants me to restage our entire site after reducing the size of all modules by 10%, so I’m looking for an easy way to stage all of our current pages and be able to modify the modules in my developer account and stage there before we republish the entire site with different sizes. I just can’t modify the CSS on all the modules in the production account as they are still be used in deployment.

Hi @KyleCombs,

you have several options.

  • use the CMS Pages API to move the pages between portals
  • rebuild the pages manually in the dev portal (not recommended)
  • if you have CMS pro or enterprise you can use the content-staging environment to stage the pages and switch themes, rebuild and optimize and then pubilsh everything with one click

hope that helps,

best,

Anton

Thanks for the reply, @Anton. I will check out the CMS Pages API today. We do have CMS Enterprise with access to content-staging, and we used that during our initial rebuild of our site, but is there a way to stage modules to content-staging as well? My main issue is that usually when I’m working on changes, I am doing so in Design Manager working on custom modules. I currently always have to clone a module and use that in content-staging to work on making changes as if I publish any changes to my current modules, it goes to production as well.

I don’t know if there is a better way that I just haven’t been able to figure out here, but maintaing our site and making changes to the code feel extremely cumbersome here in Hubspot. I feel like I have to be missing something, but haven’t been able to figure it out through the docs, etc.

@KyleCombs sadly you’re not missing anything. This is the biggest limitation of developing in Hubspot at the moment.