-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drush commands error with "env: drush9: No such file or directory" #856
Comments
I had the alias set up like this:
I had to change the URI to:
and now it looks like things are working correctly. But is there a way we can support the 'real' URIs in drush aliases? Sometimes things like migrations, search indexing commands, etc. need the real URI otherwise some things in the database/Solr will end up with the wrong domain. |
@geerlingguy This stems from the fact that we use drush 9 for BLT, but Acquia Cloud does not support drush 9. We get around this by using hook_drush_sitealias_alter() in policy.drush.inc to specifically use drush8 rather than drush9 for any drush alias that contains the string "acquia". |
Thanks for the fix! Basically, the commit above switches from using |
My system information:
When I run this command:
I get the following output:
And I expected this to happen:
I found this issue when trying to run
blt local:refresh
after upgrading a really old BLT-powered site from BLT like 8.1.0 to 8.6.5... and it looks like the issue is thepolicy_drush_sitealias_alter()
inblt/template/drush/policy.drush.inc
Line 10 in 138fc0c
acquia
in the alias'uri
to detect when to alter thedrush9
todrush8
call...We are using a custom
aliases.drushrc.php
file in our project, and define the alias using the live domain of the site for theuri
(instead of the Acquia one).The text was updated successfully, but these errors were encountered: