I have been using Drush 4 and 5 with no problem. Now that I have downloaded and installed new Drush 7.0-dev using composer, I am having problem i.e it doesn't by-default detect drupal installation when I am on sites sub-folder,
Drush running on sites-root directory,
drupal7/sites/example.com/modules/views$ drush status
Drupal version : 7.30
Site URI : http://example.com
Database driver : mysql
Database hostname : localhost
Database port :
Database username : example_user
Database name : example_db
Database : Connected
Drupal bootstrap : Successful
Drupal user :
Default theme : bartik
Administration theme : seven
PHP executable : /usr/bin/php
PHP configuration : /etc/php5/cli/php.ini
PHP OS : Linux
Drush version : 7.0-dev
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
Drupal root : drupal7
Site path : sites/example.com
File directory path : sites/example.com/files
Temporary file directory path : /tmp
Drush running under sites-subdirectory,
drupal7/sites/example.com/modules/views$ drush status
Drupal version : 7.30
PHP executable : /usr/bin/php
PHP configuration : /etc/php5/cli/php.ini
PHP OS : Linux
Drush version : 7.0-dev
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
Drupal root : drupal7
So, how do I configure Drush, is there anything I can do to make it work, I don't want to use --uri
or -l
flag or any other options everytime.
Update
Also when I download modules it get downloaded on sites/all/modules
directory
drupal7/sites/example.com/modules$ drush dl webform
Project webform (7.x-3.20) downloaded to drupal7/sites/all/modules/webform. [success]
But if I am on sites-root directory it works fine,
drupal7/sites/example.com$ drush dl webform
Project webform (7.x-3.20) downloaded to /home/sysop/project/drupal7/htdocs/sites/heisenberg.com/modules/webform. [success]