Merge orchard content from development and production databases

混江龙づ霸主 提交于 2019-12-23 09:37:43

问题


I`m looking for a solution to a following problem. We have orchard site on production environment developed some time ago. All site structure (widgets, parts, layers) was created before initial release. Now we want to add sub site with additional pages and layers. We want to do this work on development environment and test it before release (on top of recent production database snapshot). At the same time on production environment new minor content would be added. So question is – is there solution to merge changes from one orchard database (development one) to other one (production)? Those changes include layers, custom widgets and parts.


回答1:


The Orchard Import Export Module may help you. It lets you export data from one Orchard instance and import it into another. All the modules you use need to have extra code in them to support this.

This won't help you with merging though if you plan to make db changes in both live and test, but it might be a step in the right direction.

For an example of import/export support look at the Importing and Exporting methods in a driver for one of the Orchard core modules like Tags.



来源:https://stackoverflow.com/questions/15771744/merge-orchard-content-from-development-and-production-databases

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!