Skip to content

Instantly share code, notes, and snippets.

@claudinec
Last active December 8, 2015 23:40
Show Gist options
  • Save claudinec/546ad858253fb4210bd4 to your computer and use it in GitHub Desktop.
Save claudinec/546ad858253fb4210bd4 to your computer and use it in GitHub Desktop.
Drupal development notes

Drupal development notes

Managing code

Use Git and git-flow to manage code.

If we're working across multiple major Drupal versions, prefix the branch with d7-, d8- etc.

Two options:

  1. Keep the sites directory under version control.
  2. Keep the entire drupal directory under version control; this gives us an extra bit of protection in the unlikely event that an update to Drupal core breaks our site.

Modules and Features

Organise the sites/(all|whatever)/modules directory into:

  • contrib modules downloaded from drupal.org
  • custom modules just for this site, not intended for release on drupal.org
  • features for site configuration managed using the Features module

If we're modifying a contrib module and might want to contribute our changes back to the community, consider adding it as a git submodule. (See the drupal.org handbook on Git.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment