User login

very wrong attempts to load a specified Drush alias configuration file

in

It's funny if you weren't there. Trying to call and use a Drush aliases file. First of all, the flag is --alias-path (this is missing from drush topic global-core-options but mentioned in drush/examples/example.alias.drushrc.php) and secondly it takes the directory not the file name. See Settings for sets of sites: Putting Drush configuration into your project repository.

ben@ubuntu:~/code/sdl (master)$ drush -v --config="site.aliases.drushrc.php" @sites.qa cc all
Load alias @sites.qa                                                      [notice]
The drush command '@sites.qa cc all' could not be found.               [error]
A Drupal installation directory could not be found                     [error]
ben@ubuntu:~/code/sdl (master)$ drush -v --config="site.aliases.drushrc.php" @sites.qa cc all
Load alias @sites.qa                                                      [notice]
The drush command '@sites.qa cc all' could not be found.               [error]
A Drupal installation directory could not be found                     [error]
ben@ubuntu:~/code/sdl (master)$ drush @site.qa -v --config="site.aliases.drushrc.php" cc all
Load alias @site.qa                                                       [notice]
The drush command '@site.qa cc all' could not be found.                [error]
A Drupal installation directory could not be found                     [error]
ben@ubuntu:~/code/sdl (master)$ drush @site.qa -v -c site.aliases.drushrc.php cc all
Load alias @site.qa                                                       [notice]
The drush command '@site.qa cc all' could not be found.                [error]
A Drupal installation directory could not be found                     [error]
ben@ubuntu:~/code/sdl (master)$ drush @site.qa -c site.aliases.drushrc.php cc allThe drush command '@site.qa cc all' could not be found.                [error]
A Drupal installation directory could not be found                     [error]
ben@ubuntu:~/code/sdl (master)$ drush cc all
Command cache-clear needs a higher bootstrap level to run - you will   [error]
need invoke drush from a more functional Drupal environment to run this
command.
The drush command 'cc all' could not be executed.                      [error]
A Drupal installation directory could not be found                     [error]
ben@ubuntu:~/code/sdl (master)$ drush @site.qa cc all -c site.aliases.drushrc.php
The drush command '@site.qa cc all' could not be found.                [error]
A Drupal installation directory could not be found                     [error]
ben@ubuntu:~/code/sdl (master)$ drush @site.qa cc all --config="site.aliases.drushrc.php"
The drush command '@site.qa cc all' could not be found.                [error]
A Drupal installation directory could not be found                     [error]
ben@ubuntu:~/code/sdl (master)$ pwd
/home/ben/code/sdl
ben@ubuntu:~/code/sdl (master)$ drush @site.qa cc all --config="/home/ben/code/sdl/site.aliases.drushrc.php"
The drush command '@site.qa cc all' could not be found.                [error]
A Drupal installation directory could not be found                     [error]
Searched words: 
--path-alias

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.