This repository was archived by the owner on Feb 13, 2023. It is now read-only.
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
Drush 9 cannot SSH into Drupal VM #1595
Closed
Description
Issue Type
- Bug Report / Support Request
Your OS
- Linux (Ubuntu 17.10)
Summary
DrupalVM provides a template Drush alias file so that Drush knows how to access the VM via SSH:
https://github.com/geerlingguy/drupal-vm/blob/master/provisioning/templates/drupalvm.aliases.drushrc.php.j2
There are a few problems with this for Drush 9:
- drushrc files are replaced with YAML files
- the ssh-options key becomes an array key:
ssh:
options:
- because it's a yaml file and not a php file, you can't run commands inline like drush_server_home()
BLT has started converting its own alias template for Drush 9 but I'm stuck on that last step. I figure we should decide on a collective approach to this.
https://github.com/acquia/blt/blob/9.1.x/scripts/drupal-vm/drupal-vm.aliases.yml