This is from the 'examples/example.aliases.drush.php' file that ships with drush:<div><br></div><div><div> * Aliases are commonly used to define short names for</div><div> * local or remote Drupal installations; however, an alias</div>
<div> * is really nothing more than a collection of options.</div><div> * A canonical alias named "dev" that points to a local</div><div> * Drupal site named "<a href="http://dev.mydrupalsite.com">dev.mydrupalsite.com</a>" looks like this: </div>
<div> *</div><div> * $aliases['dev'] = array(</div><div> * 'root' => '/path/to/drupal',</div><div> * 'uri' => '<a href="http://dev.mydrupalsite.com">dev.mydrupalsite.com</a>',</div>
<div> * );</div><div> *</div><div> * With this alias definition, then the following commands</div><div> * are equivalent:</div><div> *</div><div> * $ drush @dev status</div><div> * $ drush --root=/path/to/drupal --uri=<a href="http://dev.mydrupalsite.com">dev.mydrupalsite.com</a> status</div>
<div><div> *</div><div> * Any option that can be placed on the drush commandline</div><div> * can also appear in an alias definition.</div><div> *</div><div> * There are several ways to create alias files.</div><div> *</div>
<div> * + Put each alias in a separate file called ALIASNAME.alias.drushrc.php</div><div> * + Put multiple aliases in a single file called aliases.drushrc.php</div><div> * + Put groups of aliases into files called GROUPNAME.aliases.drushrc.php</div>
</div><div><br></div><div>check out the example file for more details :) (with aliases, you can "be" anywhere on your system and run drush commands)</div><div><br></div><div>-Benj</div><div><br></div><br><div class="gmail_quote">
On Wed, Sep 14, 2011 at 10:21 PM, Roger <span dir="ltr"><<a href="mailto:arelem@bigpond.com">arelem@bigpond.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 15/09/11 13:06, <a href="mailto:support-request@drupal.org">support-request@drupal.org</a> wrote:<br>
> I 2nd this opinion - drush isn't sure which of your multi-sites you are<br>
> trying to target. You'll either need to set up drush aliases or 'cd' to the<br>
> specific multi-site you want to affect.<br>
><br>
> -Benj<br>
Thanks Benj. How do I set up drush aliases? Maybe I could use such a<br>
thing to flush without having to change diretories<br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br></div>