问题描述
我正在寻找以下问题的解决方案.我们的果园站点在生产环境上已经开发了一段时间.所有站点结构(小部件,零件,层)都是在初始发行之前创建的.现在,我们要添加具有其他页面和图层的子站点.我们想要在开发环境上进行这项工作,并在发布之前对其进行测试(在最近的生产数据库快照之上).同时在生产环境中将添加新的次要内容.因此,问题是–是否存在将一个果园数据库(开发一个)的变更合并到另一个果园数据库(生产)的解决方案?这些更改包括图层,自定义窗口小部件和零件.
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.
推荐答案
果园导入导出模块可能会为您提供帮助.它使您可以从一个Orchard实例中导出数据并将其导入到另一个Orchard实例中.您使用的所有模块都需要在其中包含额外的代码来支持此功能.
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.
有关导入/导出支持的示例,请查看驱动程序中的Orchard核心模块之一(如标签")中的导入和导出"方法.
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.
这篇关于合并开发和生产数据库中的果园内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!