On 15/09/11 13:06, support-request@drupal.org wrote:
I 2nd this opinion - drush isn't sure which of your multi-sites you are trying to target. You'll either need to set up drush aliases or 'cd' to the specific multi-site you want to affect.
-Benj
Thanks Benj. How do I set up drush aliases? Maybe I could use such a thing to flush without having to change diretories
This is from the 'examples/example.aliases.drush.php' file that ships with drush:
* Aliases are commonly used to define short names for * local or remote Drupal installations; however, an alias * is really nothing more than a collection of options. * A canonical alias named "dev" that points to a local * Drupal site named "dev.mydrupalsite.com" looks like this: * * $aliases['dev'] = array( * 'root' => '/path/to/drupal', * 'uri' => 'dev.mydrupalsite.com', * ); * * With this alias definition, then the following commands * are equivalent: * * $ drush @dev status * $ drush --root=/path/to/drupal --uri=dev.mydrupalsite.com status * * Any option that can be placed on the drush commandline * can also appear in an alias definition. * * There are several ways to create alias files. * * + Put each alias in a separate file called ALIASNAME.alias.drushrc.php * + Put multiple aliases in a single file called aliases.drushrc.php * + Put groups of aliases into files called GROUPNAME.aliases.drushrc.php
check out the example file for more details :) (with aliases, you can "be" anywhere on your system and run drush commands)
-Benj
On Wed, Sep 14, 2011 at 10:21 PM, Roger arelem@bigpond.com wrote:
On 15/09/11 13:06, support-request@drupal.org wrote:
I 2nd this opinion - drush isn't sure which of your multi-sites you are trying to target. You'll either need to set up drush aliases or 'cd' to
the
specific multi-site you want to affect.
-Benj
Thanks Benj. How do I set up drush aliases? Maybe I could use such a thing to flush without having to change diretories -- [ Drupal support list | http://lists.drupal.org/ ]
I think this is actually talking about aliases at the drush level, where you can use @dev as a shortcut to a particular install of drupal, instead of aliases meaning symlinks at the linux level.
Brett Evanson
On Thu, Sep 15, 2011 at 8:10 AM, Benj Fredrick benj.fredrick@gmail.com wrote:
This is from the 'examples/example.aliases.drush.php' file that ships with drush: * Aliases are commonly used to define short names for * local or remote Drupal installations; however, an alias * is really nothing more than a collection of options. * A canonical alias named "dev" that points to a local * Drupal site named "dev.mydrupalsite.com" looks like this: * * $aliases['dev'] = array( * 'root' => '/path/to/drupal', * 'uri' => 'dev.mydrupalsite.com', * ); * * With this alias definition, then the following commands * are equivalent: * * $ drush @dev status * $ drush --root=/path/to/drupal --uri=dev.mydrupalsite.com status * * Any option that can be placed on the drush commandline * can also appear in an alias definition. * * There are several ways to create alias files. * * + Put each alias in a separate file called ALIASNAME.alias.drushrc.php * + Put multiple aliases in a single file called aliases.drushrc.php * + Put groups of aliases into files called GROUPNAME.aliases.drushrc.php check out the example file for more details :) (with aliases, you can "be" anywhere on your system and run drush commands) -Benj
On Wed, Sep 14, 2011 at 10:21 PM, Roger arelem@bigpond.com wrote:
On 15/09/11 13:06, support-request@drupal.org wrote:
I 2nd this opinion - drush isn't sure which of your multi-sites you are trying to target. You'll either need to set up drush aliases or 'cd' to the specific multi-site you want to affect.
-Benj
Thanks Benj. How do I set up drush aliases? Maybe I could use such a thing to flush without having to change diretories -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
here's how you create the symlink so you can call drush from anywhere:
sudo ln –s /root/drush/drush /usr/bin/drush
then you can cd to /var/www/html/sites/MYSITE.com and call drush from there
Brett Evanson
On Wed, Sep 14, 2011 at 10:21 PM, Roger arelem@bigpond.com wrote:
On 15/09/11 13:06, support-request@drupal.org wrote:
I 2nd this opinion - drush isn't sure which of your multi-sites you are trying to target. You'll either need to set up drush aliases or 'cd' to the specific multi-site you want to affect.
-Benj
Thanks Benj. How do I set up drush aliases? Maybe I could use such a thing to flush without having to change diretories -- [ Drupal support list | http://lists.drupal.org/ ]
It would mean that anyone with command line access would be able to run the drush command, but hopefully you can control command line access.
Brett Evanson
On Thu, Sep 15, 2011 at 8:21 AM, Matthew Lechleider matthew@lechleider.com wrote:
Brett, can this cause permission issues?
On 09/15/2011 09:11 AM, Brett Evanson wrote:
sudo ln –s /root/drush/drush /usr/bin/drush
-- [ Drupal support list | http://lists.drupal.org/ ]