I have three environments, Production, Staging, and Integration, I'd like to sync Integration DB and Code as its parent environment, which is Staging.
How could I sync the database and the code?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
You can use Magento Cloud CLI to do it, you just need to change to your integration branch and run it:
magento-cloud sync data
magento-cloud sync code
zip -r -9 var/media.zip pub/media/ -x 'pub/media/catalog/tmp' -x 'pub/media/catalog/product/cache/' -x 'pub/media/tmp/'
Move the zip to your local machine and transfer it to your integration env.
magento-cloud scp -r remote:var/media.zip ./ -e staging magento-cloud scp -r ./media.zip remote:var/ -e integration