0

In my loalhost there are few drupal 7 sites installed.

Suppose I have projects A,B and C then how to use for A,B Or C etc.

How to use Drush by project wise?

1

Goto each project folder to run drush command as project wise. If you are using multi-site goto the project folder under sites directory and execute your drush command.

1
  • When i am trying to use drush command then it is always showing some error with this message connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See drupal.org/node/1428638 for details
    – Fawwad
    Aug 10 '15 at 7:01
1

Go to the project root directory and run the drush commands.

For eg:

For Project A,

Go to root directory i.e cd var/www/html/A(may vary) and run the drush commands.

$:/var/www/html/A drush cc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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