Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Let's .make fun

How to use drush .make file to maintain your codebase and avoid really strong headaches

DrupalCamp London 2016

About me

Common ways of setting up a Drupal project codebase (hopefully not so common...)

Manual Download from Drupal.org

Clone Drupal GIT repo(s)

git clone http://git.drupal.org/project/drupal.git myproject

Use Drush

drush dl devel

Other or Custom ways

Confused?

Me too!

Drush Make

One tool to rule them all,
One tool to find them,
One tool to bring them all
and in the project bind them
#TheCommandOfThePower
Drush extension able to create a ready-to-use drupal site, from a simple text file (.make) listing rules (source types, paths, destination names) and dependencies. drush make myfile.make my-docroot

What drush make IS

What drush make IS NOT

*will see how later on...

The .make file

File and Syntax

Projects & Libraries

Recursions

Includes & Overrides

Painless Patching

Patching from your .make file

 

You have the control of the workflow and the system

 

You have the control of the workflow and the system

and NOT the other way round!!!

Tips and Tricks

Everyday examples, suggestions, ideas

.make your workflow

base.make
prod.make
test.make
dev.make

.make your workflow (2)

.gitignore: !docroot/sites docroot/sites/* !docroot/sites/all docroot/sites/all/* !docroot/sites/all/modules docroot/sites/all/modules/* !docroot/sites/all/modules/custom !docroot/sites/all/modules/feature

Controlling recursion

do_recursion: 0

--no-recursion

Multisites

contrib_destination: "sites/site2.co.uk"

Patching issue

type = git

Custom .htaccess?

Patch the core!

Thank you!

@gambry

@DrupalCampLDN

#TheCommandOfThePower

Questions or Lunch???

@gambry

@DrupalCampLDN

#TheCommandOfThePower

Use a spacebar or arrow keys to navigate