手动重新创建安装配置文件
我一直在阅读有关 drupal 安装配置文件的内容,我想知道使用打包安装配置文件与安装核心 + 手动安装安装配置文件中列出的模块之间是否有很大区别?
我想执行后者(手动安装每个模块)来控制已安装的每个模块的版本,我无法使用可能尚未维护的打包安装配置文件来控制这些版本。
但我应该或者将会为我不知道的事情打开大门吗?难道这两个不应该是相同的,只有一个是自动的,另一个是手动的吗?
I've been reading about drupal install profiles, and I'm wondering if there's much of a difference between using a packaged install profile vs. installing core + manually installing the modules listed in the install profiles?
I'd like to do the latter (manually installing each) to control the versions of each module installed, which I can't control with a packaged install profile that may not have been maintained.
But should I or will I be opening the door to something I'm not aware of? Shouldn't the 2 be identical, just one automated and other is manual?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
kiamlaluno 所说的,加上安装配置文件可以在安装时执行设置的自定义配置这一事实,可能会构造自定义视图/内容类型/等(特别是通过 features.module,您可以在 OpenAtrium 中看到大量使用),以及可能会在特定于发行版的模块中提供其他自定义代码。
简短的回答是,不,您不能通过下载包含所有这些模块的干净的 drupal 来复制安装配置文件 - 最好的选择是使用安装配置文件。如果您担心模块版本,只需确保您使用的是积极维护的配置文件即可。
What kiamlaluno said, plus the fact that installation profiles may perform custom configuration of settings on install, might construct custom views/content-types/etc (especially by means of features.module, which you can see heavy use of in OpenAtrium), and might provide other custom code in distro-specific module.
The short answer is, no you can't just replicate an install profile by downloading a clean drupal with all those modules -- best bet is to use the install profile. If you're worried about module versions, just make sure you're using a profile that's actively maintained.
不同之处在于安装配置文件包含其所需的所有模块的正确版本。
这意味着与手动安装每个模块不同,您不需要验证与模块 Y 有效协同工作的模块 X 的正确版本;在极少数情况下,当安装了另一个模块的版本 A 时,一个模块无法正常工作,如果您不想出现问题,则需要安装同一模块的版本 B。
安装配置文件可以有一个自定义安装页面,允许您更改站点的某些参数;它还允许安装配置文件作者定义需要应用于模块的补丁,以修复模块的错误,或使其更好地与另一个模块配合使用。
如果您需要设置站点以实现特定目的,安装配置文件对您很有用,因为它们允许您正确设置站点,而无需了解有关如何设置 Drupal 站点的所有详细信息。
The difference is that an installation profile includes the right version of all the modules it needs.
This means that differently from manually installing each module, you don't need to verify the correct version of the module X that effectively works together the module Y; there are few cases where one module doesn't work well when version A of another module is installed, and you need to install version B of the same module, if you don't want problems.
An installation profile can have a custom installation page that allows you to change some parameters of your site; it also allows the installation profile author to define a patch that needs to be applied a module, in order to fix a bug of the module, or to make it work better with another module.
If you need to set a site to work for a particular purpose, installation profiles are useful for you as they allow you to set the site correctly without to know all the details about how a Drupal site needs to be set.
我相信您可以指定要安装的模块的版本参见
I believe you can specify the versions of the modules you want to install see