2

My Drush commands doesn't work because my Drupal files are in another directory than the one set in Drush. Everything is set up to this path so I can't just change the folder name.

Drush status
  [..]
  Drupal root   : /Users/nicklas/Documents/SourceTree/Drupal/web

How can I change the path to /docroot instead of /web?

/Users/nicklas/Documents/SourceTree/Drupal/docroot

1 Answer 1

2

You can pass it in via the --root argument

drush status --root=/Users/nicklas/Documents/SourceTree/Drupal/docroot

3
  • Has this command changed in drush 9 ? My local installation doesn't recognise it Aug 19, 2019 at 20:56
  • Mine still works, does it recognize drush at all?
    – cchen
    Aug 19, 2019 at 21:12
  • Yes, haven't had any issues with other Drush commands Aug 20, 2019 at 8:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.