Skip to content

Instantly share code, notes, and snippets.

@a-fro
Last active May 27, 2016 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-fro/bf662ac293bd77fe712f49493025d0c2 to your computer and use it in GitHub Desktop.
Save a-fro/bf662ac293bd77fe712f49493025d0c2 to your computer and use it in GitHub Desktop.
Notes on upgrading to the latest/greatest DrupalVM for ILR

Upgrading to DrupalVM 3.0 with PHP 7.0

  1. If you are in the middle of some work, feel free to create a backup of your current database, either with SequelPro, or via

    drush cc all
    drush sql-dump -l default --gzip --result-file=../db/backups/pre-vm-upgrade-$(date +%m.%d.%y-%H-%M).sql.gzip
    
  2. Remove the current environment with vagrant destroy -f

  3. Fetch the new branch with git fetch

  4. Checkout the new branch with git checkout 3.0

  5. Open your known hosts file for editing: subl ~/.ssh/known_hosts

  6. Remove the host key for your dev environment, probably listed with the ip 192.168.88.89, or possibly as ilrdevvm or a variant

  7. vagrant up - if errors with ansible galaxy, see this issue

  8. Once Asible completes successfully, head back to your ilr-website folder and cd to the docroot

  9. Pull master down from github

  10. Apply the PHP 7 patch with curl https://www.drupal.org/files/issues/drupal-session_destroy_return_bool-2460833-30.patch | patch -p1

  11. Have git ignore the patched Drupal core file with git update-index --skip-worktree includes/session.inc

  12. Sync the db with drush sql-sync @ilr.live @ilr.ilr.local --sanitize -y

  13. drush cc all

  14. drush updb -y

  15. drush en ilr_dev (may require running more than once if there are errors)

  16. Enjoy the cutting edge. NetID login should work straight out of the box.

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