.make 与 .profile
有人可以告诉我 .profile 和 .make 文件在 drupal 安装配置文件方面有什么区别吗?我需要其中哪一个?
Can someone tell me what's the difference between a .profile and a .make file when it comes to drupal install profiles. Which of these do I need?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
.profile 文件是 Drupal 在加载安装文件时使用的文件。它们定义要加载的模块、配置选项、初始数据等。您仍然需要下载安装配置文件可能需要的所有模块并完成 Drupal 安装。
.make 文件是一个 Drush (特别是 Drush Make) 构造,可以采用安装配置文件和其他配置选项,自动将所有内容下载到正确的位置并实例化一个新的 Drupal 实例。
当 Drupal 第一次实现安装配置文件时,Drush 还不存在;如果您想创建自己的安装配置文件,则必须手动完成所有操作。 Drush 将 make 文件引入了 Drupal,这使得设置安装配置文件变得更加简单。查看在 Drupal.org 上打包配置文件和为 Drupal 安装程序编写安装配置文件 了解更多信息。
.profile files are what Drupal uses when loading installation files. They define what modules are to be loaded, configuration options, initial data, etc. You still need to download all the modules the installation profile may require and go through Drupal installation.
.make files are a Drush (specifically Drush Make) construct that can take an installation profile and other configuration options, automatically download everything in the right place and instantiate a new Drupal instance.
When Drupal first implemented installation profiles, Drush didn't exist; if you wanted to create your own installation profile, you had to do everything manually. Drush introduced the make file to Drupal, which makes setting up the installation profile much more straightforward. Check out the handbook page on packaging a profile on Drupal.org and Writing an installation profile for the Drupal installer for more information.
.profile 文件允许您将其他设置页面添加到 Drupal 在安装过程中显示的安装设置页面,而 .make 文件(drupal-org.make 是 drupal.org 上使用的默认文件)包含来自以下位置的所需模块的列表:安装配置文件。
A .profile file allows you to add additional settings pages to the installation settings pages Drupal shows during the installation, while a .make file (drupal-org.make is the default one used on drupal.org) contains a list of required modules from the installation profile.