组合安装配置文件
假设我对安装配置文件 A 提供的功能感兴趣,但我也对安装配置文件 B 提供的某些功能感兴趣。但从技术上讲,不可能同时启动这两个安装配置文件。
- 有没有一种方法可以让我手动将 2 个安装配置文件合并到一个自定义配置文件中?
- 我是否必须从头开始重建和重新配置所有模块?
- 我怎样才能做到这一点而不错过维护人员设置的配置?
So lets say that I'm interested in the functionality that Install Profile A offers, but I'm also interested in some of the functionality that Install Profile B offers. But technically it's not possible to fire up both install profiles.
- Is there a way I could someone manually combine 2 install profiles into a custom one?
- Do I have to rebuild and reconfigure all the modules from scratch?
- How could I do that without missing the configurations set by the maintainers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前还不太可能。
安装配置文件是一次性运行、从头开始、全有或全无的交易。
现在正在使用替代方案功能和模式(两种相互竞争的方法) - 尝试捕捉仅配置站点配方的某些部分并将其导出以供重用和重新组合的想法。
您可以手动从您感兴趣的任何配置文件中获取部分内容,并将它们组合起来制作您自己的配置文件,但这实际上只是制作您自己的配置文件。您要做的就是通过示例学习......这是一个良好的开始,但在代码方面没有长期优势。
在配置文件中启用您想要的模块非常简单。然而,配置它们可能会很棘手,具体取决于它们是什么。每个都是不同的。这就是为什么我使用“模式”来保存某些配置配方。
Not really possible at the moment.
Install profiles are run-once, from-scratch, all-or-nothing deals.
That's now being looked at with the alternatives Features and Patterns (two competing approaches) - which try to capture the idea of just configuring certain parts of a site recipe, and exporting that for re-use and re-combining.
You can manually grab the bits from any profiles that interest you and combine them to make your own, but that's effectively just making your own. All you'd be doing is learning by example ... which is a good start, but has no long-term advantage code-wise.
Enabling the modules you want is really easy in profiles. Configuring them however, can be tricky, depending on what they are. Each is different. Which is why I use 'patterns' to save certain config recipes.