Home ›
very wrong attempts to load a specified Drush alias configuration filevery wrong attempts to load a specified Drush alias configuration file
Submitted by Benjamin Melançon on August 27, 2011 - 3:10pm
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