0

I hear some talk about Drush make and features.

But not sure how to use them in combination.

Is there a way to have a Drupal site install with ALL settings, including install procedure (enter database name, site name, username ect...)

Include what modules to enable, set user permissions.

I know that Drush can do some of that.

But is it possible to have it ALL done within the drush.make file, can I add standard drush commands to that?

1

The responsibilities of Drush make involve downloading the files that make up your site. Site initialization can be done in an installation profile, which is selected at installation time, or perhaps in a script that you run to set up your site.

For Drupal 8, configuration can be imported via the drush config-import command. In Drupal 7, there are many options for managing configuration. A lot of people (perhaps the majority) use features, but I prefer ctools bonus export. Here is an example script I use to set up a test site for behat tests.

If you are just starting out, you might want to consider using Composer instead of Drush Make.

  • How do I use DrushMake AND Features together? Do I need to export features in the backend via GUI or can I have drush commands that control features? – Bruno Vincent Sep 20 '15 at 11:15
  • Features will create Drupal modules that encapsulate your configuration; you can apply your configuration with the drush features-revert command. – greg_1_anderson Sep 20 '15 at 21:53
  • Ok, I can create the Feature via GUI, how to create by Drush and pick options like the "select" boxes from command console? Additionally, how to enable the module on the destination site with drush? I tried "drush en myfeaturemodule -y" command but getting errors, enabling through the GUI takes forever, not sure will work at all...times out – Bruno Vincent Sep 23 '15 at 10:24
  • Drupal Stack Exchange is not an interactive tutorial! I recommend that you read some of the documentation on features, which, you may notice, is not the solution I recommended. Good luck! – greg_1_anderson Sep 23 '15 at 14:11

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.