Skip to main content
removed "Drupal" from the title
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Can Drush 9 be used with Drupal 7this core version?

Formated code and error message
Source Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

Can Drush 9 be used with Drupal 7?

I have a Drupal 7 site that was not built with composerComposer. I have been using Drush 7 with it, but about a week ago, wd-show --taildrush wd-show --tail stopped working, I'm not getting any output. I installed Drush 9, but amI'm having difficulty configuring it.

I created an xmlXML file, per the example., Instructions say to put aliases in $PROJECT/drush/sites/self.site.yml$PROJECT/drush/sites/self.site.yml but I don't have a project root with composer.jsona ----composer.json can I get this to work without using composerComposer to build my site? Or is drushDrush 9 depending on the drupalDrupal site using composerComposer?

I'm running the local version of the site in MAMP on my Mac. I created sites/drush/sites/self.site.yml --sites/drush/sites/self.site.yml it contains: local: root: /Users/pglatz/dev/wdocs/wdocs-code/www uri: 'https://www.whiskerdocs-local-qa.pglatz.com/'

local:
  root: /Users/pglatz/dev/wdocs/wdocs-code/www
  uri: 'https://www.whiskerdocs-local-qa.pglatz.com/'

The command I'm using is: drush9 @local --alias-path=/Users/pglatz/dev/wdocs/wdocs-code/www/sites/drush/sites --root=/Users/pglatz/dev/wdocs/wdocs-code/www

$ drush9 @local --alias-path=/Users/pglatz/dev/wdocs/wdocs-code/www/sites/drush/sites --root=/Users/pglatz/dev/wdocs/wdocs-code/www

When I run it, I get the error: Command wd-show was not found. Pass --root or a @siteAlias in order to run Drupal-specific commands.

Command wd-show was not found. Pass --root or a @siteAlias in order to run Drupal-specific commands.

But I am passing --root--root and a site alias. Likely a dumb syntax error on my part, but I can't figure it out. Thanks for your help.What am I doing wrong? And how can I get Drush to be working properly again?

Can Drush 9 be used with Drupal 7

I have a Drupal 7 site that was not built with composer. I have been using Drush 7 with it, but about a week ago, wd-show --tail stopped working, I'm not getting any output. I installed Drush 9, but am having difficulty configuring it.

I created an xml file, per the example, Instructions say to put aliases in $PROJECT/drush/sites/self.site.yml but I don't have a project root with composer.json ---- can I get this to work without using composer to build my site? Or is drush 9 depending on the drupal site using composer?

I'm running the local version of the site in MAMP on my Mac. I created sites/drush/sites/self.site.yml -- it contains: local: root: /Users/pglatz/dev/wdocs/wdocs-code/www uri: 'https://www.whiskerdocs-local-qa.pglatz.com/'

The command I'm using is: drush9 @local --alias-path=/Users/pglatz/dev/wdocs/wdocs-code/www/sites/drush/sites --root=/Users/pglatz/dev/wdocs/wdocs-code/www

When I run it, I get the error: Command wd-show was not found. Pass --root or a @siteAlias in order to run Drupal-specific commands.

But I am passing --root and a site alias. Likely a dumb syntax error on my part, but I can't figure it out. Thanks for your help.

Can Drush 9 be used with Drupal 7?

I have a Drupal 7 site that was not built with Composer. I have been using Drush 7 with it, but about a week ago, drush wd-show --tail stopped working, I'm not getting any output. I installed Drush 9, but I'm having difficulty configuring it.

I created an XML file, per the example., Instructions say to put aliases in $PROJECT/drush/sites/self.site.yml but I don't have a project root with a composer.json can I get this to work without using Composer to build my site? Or is Drush 9 depending on the Drupal site using Composer?

I'm running the local version of the site in MAMP on my Mac. I created sites/drush/sites/self.site.yml it contains:

local:
  root: /Users/pglatz/dev/wdocs/wdocs-code/www
  uri: 'https://www.whiskerdocs-local-qa.pglatz.com/'

The command I'm using is:

$ drush9 @local --alias-path=/Users/pglatz/dev/wdocs/wdocs-code/www/sites/drush/sites --root=/Users/pglatz/dev/wdocs/wdocs-code/www

When I run it, I get the error:

Command wd-show was not found. Pass --root or a @siteAlias in order to run Drupal-specific commands.

But I am passing --root and a site alias. Likely a dumb syntax error on my part, but I can't figure it out. What am I doing wrong? And how can I get Drush to be working properly again?

edited title
Link
4uk4
  • 101.7k
  • 7
  • 173
  • 217

Can drushDrush 9 be used without composer?with Drupal 7

Added DVT to avoid further confusion
Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126
Loading
Source Link
pglatz
  • 469
  • 1
  • 4
  • 15
Loading