Skip to content

Instantly share code, notes, and snippets.

@dougmorin
Created January 6, 2017 17:34
Show Gist options
  • Save dougmorin/7fb5f490e599681d62ae563169359534 to your computer and use it in GitHub Desktop.
Save dougmorin/7fb5f490e599681d62ae563169359534 to your computer and use it in GitHub Desktop.
Drupal Update Procedures

Drupal Update Procedures

Updating Drupal Core

  • In git, checkout to a new branch.
    • The naming convention should be core-update-8.x.x.
  • In terminal, navigate to the 'drupal root'.
  • In terminal, run drush upc drupal.
  • After this has run, check both the .htaccess file and robots.txt file to make sure that none of your changes have been overwritten.
  • Commit all of the files to git and label the commit appropriately.
  • Apply any core patches that live in the patches folder, commit those as a single commit.
  • From 'drupal root', reinstall composer manager and run composer drupal-update.
    • The script will take a while to run, so get a coffee.
  • Commit all composer updates as a single commit.

Module Updates

  • In git, checkout to a new branch.
    • The naming convention should be *module*-update-8.x.x.
  • In terminal, navigate to the 'drupal root'.
  • In terminal, run drush dl *module*.
  • Commit all of the files to git and label the commit appropriately.
  • Apply any patches for the module you just updated that live in the patches folder, commit those as a single commit.
  • From the 'drupal root', run composer drupal-update.
    • The script will take a while to run, so get a coffee.
  • Commit all composer updates as a single commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment