I am just getting into using drush and excited about using drush make and installations profiles. What is the different between a drush make file and an installation profile and do they /can they work together?


Drush make...

Drush make is an extension to drush that can create a ready-to-use drupal site, pulling sources from various locations. It does this by parsing a flat text file (similar to a drupal .info file) and downloading the sources it describes. In practical terms, this means that it is possible to distribute a complicated Drupal distribution as a single text file.

Note that it doesn't install/set up the site for you - it merely downloads and prepares the required files in the specified locations.

Install profiles...

Installation profiles provide specific site features and functions for a specific purpose or type of site. They make it possible to quickly set up a complex, use-specific site in fewer steps than if installing and configuring elements individually.

Once you've used Drush Make to download all the files relevant to your project, you go ahead and install Drupal as normal (whether through the UI or with Drush), except you choose your profile during installation.

The code in the profile enables required modules, sets up initial configuration for those modules and the core system, perhaps installs demo content (think Commerce Kickstart), adds menus, sets variables, etc.

Using Drush make to install a profile would be a good question/answer to look at to get an idea of how they can integrate together.

  • Thanks. I have looked at the profile builder module which has created a install profile for my site and a make file. In addition to this what other things will I need to take into account to rebuild the site. E.g. the database, permissions. What about panels config etc? – Andrew Welch Apr 9 '13 at 22:00
  • Config is one area Drupal 7 is sadly lacking (it gets a lot better in Drupal 8). The most oft-recommended modules are Features and Configuration Management. I don't have much experience with features, but it does support Panels; I've used Configuration Management a fair bit and I like it (it exports config to flat files so you can transfer them across sites) but I'm not sure if it has Panels support yet – Clive Apr 9 '13 at 22:08
  • 1
    you can export panels and then include the files in the install profile I believe – Andrew Welch Apr 10 '13 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.