Skip to content

Instantly share code, notes, and snippets.

@jmolivas
Last active September 6, 2017 14:45
Show Gist options
  • Save jmolivas/cd032768bf91d58dcd37519efd3aa00f to your computer and use it in GitHub Desktop.
Save jmolivas/cd032768bf91d58dcd37519efd3aa00f to your computer and use it in GitHub Desktop.
Update DrupalCore to 8.4 and and drush to 9.0
# How to use
# drupal update:core:84 --directory=/path/to/site
command:
name: update:core:84
description: 'Update DruapalCore fix drush issues.'
vars:
drupal: 8.4.0-beta1
drush: 9.0.0-beta4
commands:
# - command: exec
# arguments:
# bin: drupal site:new --repository=drupal-composer/drupal-project:8.x-dev --directory=%{{directory}}
- command: exec
arguments:
bin: composer remove drush/drush --working-dir=%{{directory}}
- command: exec
arguments:
bin: composer require drush/drush:%{{drush}} --no-update --working-dir=%{{directory}}
# - command: exec
# arguments:
# bin: drupal site:install standard --db-user=root --db-pass=root --force --no-interaction --root=%{{directory}}
- command: exec
arguments:
bin: composer require drupal/core:%{{drupal}} --no-update --working-dir=%{{directory}}
- command: exec
arguments:
bin: composer update --working-dir=%{{directory}}
#- command: exec
# arguments:
# bin: drupal upex --root=%{{directory}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment