Skip to content

Instantly share code, notes, and snippets.

@allgood2386
Created October 13, 2014 14:53
Show Gist options
  • Save allgood2386/4a07b1cc029dd2043b89 to your computer and use it in GitHub Desktop.
Save allgood2386/4a07b1cc029dd2043b89 to your computer and use it in GitHub Desktop.
$aliases['vagrant'] = array(
'root' => '/var/www/docroot',
'uri' => 'somthing.dev',
'remote-user' => 'vagrant',
'remote-host' => 'something.dev',
'ssh-options' => "-p 22 -i " . $home . "/.vagrant.d/insecure_private_key",
);
@allgood2386
Copy link
Author

rallen@rallen ~/virtual_machines/something*$ drush @ something.vagrant uli -d
Starting Drush preflight. [0 sec, 2.41 MB] [preflight]
Loaded alias @ something.vagrant from file /Users/rallen/.drush/something.aliases.drushrc.php [0.01 sec, 2.42 MB] [notice]
Cache HIT cid: 7.0-dev-commandfiles-0-837cf601c7964820b1be65f827cd91f4 [0.01 sec, 2.48 MB] [debug]
Bootstrap to phase 0. [0.08 sec, 6.95 MB] [bootstrap]
Bootstrap to phase 2. [0.08 sec, 6.96 MB] [bootstrap]
Bootstrap to phase 5. [0.08 sec, 6.96 MB] [bootstrap]
Command user-login needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command. [0.08 sec, 6.96 MB] [error]
The drush command 'uli' could not be executed. [0.08 sec, 6.96 MB] [error]
The directory /var/www/docroot does not contain a valid Drupal installation [0.08 sec, 6.97 MB] [error]

rallen@rallen ~/virtual_machines/something *$ drush @ something.vagrant status -d
Starting Drush preflight. [0 sec, 2.41 MB] [preflight]
Loaded alias @ something.vagrant from file /Users/rallen/.drush/something.aliases.drushrc.php [0.01 sec, 2.42 MB] [notice]
Cache HIT cid: 7.0-dev-commandfiles-0-837cf601c7964820b1be65f827cd91f4 [0.01 sec, 2.48 MB] [debug]
Begin redispatch via drush_invoke_process(). [0.08 sec, 6.96 MB] [notice]
Backend invoke: ssh -p 22 -i /Users/rallen/.vagrant.d/insecure_private_key vagrant@ something.dev 'COLUMNS=318 drush --debug --root=/var/www/docroot --uri= something.dev --verbose core-status 2>&1' 2>&1 [0.09 sec, 6.97 MB] [command]
Calling proc_open(ssh -p 22 -i /Users/rallen/.vagrant.d/insecure_private_key vagrant@ something.dev 'COLUMNS=318 drush --debug --root=/var/www/docroot --uri= something.dev --verbose core-status 2>&1' 2>&1);
Starting Drush preflight. [0 sec, 2.5 MB] [preflight]
Cache MISS cid: 7.0-dev-alias-path--367d892d9a54b13fd5d3c1f7fb59c2d0 [0.01 sec, 2.56 MB] [debug]
Cache HIT cid: 7.0-dev-commandfiles-0-680338405a661757510f82db46080be7 [0.02 sec, 2.57 MB] [debug]
Bootstrap to phase 0. [0.07 sec, 6.72 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.07 sec, 6.73 MB] [bootstrap]
Initialized Drupal 7.31 root directory at /var/www/docroot [0.08 sec, 7.15 MB] [notice]
Cache HIT cid: 7.0-dev-commandfiles-1-c9429e8b09f0eadaa9e159be77cc9e91 [0.08 sec, 5.32 MB] [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.09 sec, 5.33 MB] [bootstrap]
Initialized Drupal site something.dev at sites/default [0.09 sec, 5.33 MB] [notice]
Cache MISS cid: 7.0-dev-commandfiles-2-9518eda12b48158193bd617384d95a7d [0.09 sec, 5.33 MB] [debug]
Cache SET cid: 7.0-dev-commandfiles-2-9518eda12b48158193bd617384d95a7d [0.22 sec, 5.34 MB] [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.23 sec, 5.33 MB] [bootstrap]
sql-query: SELECT 1; [0.23 sec, 5.47 MB] [status]
Executing: mysql --defaults-extra-file=/tmp/drush_rUZQ1c --database= something --host=localhost --silent < /tmp/drush_MehPgu
1
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.23 sec, 5.47 MB] [bootstrap]
Successfully connected to the Drupal database. [0.23 sec, 5.47 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.24 sec, 6.04 MB] [bootstrap]
Cannot modify header information - headers already sent by (output started at /usr/local/share/drush/includes/output.inc:38) boost.module:723 [1.07 sec, 35.82 MB] [warning]
Cache MISS cid: 7.0-dev-install_profile-66ecfeb9791a023150773849f1550c5d [1.13 sec, 37.38 MB] [debug]
Cache SET cid: 7.0-dev-install_profile-66ecfeb9791a023150773849f1550c5d [1.13 sec, 37.38 MB] [debug]
Cache MISS cid: 7.0-dev-commandfiles-5-846862b5379abc57e5c2350ee1059840 [1.13 sec, 37.43 MB] [debug]
Cache SET cid: 7.0-dev-commandfiles-5-846862b5379abc57e5c2350ee1059840 [6.2 sec, 37.44 MB] [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [6.27 sec, 38.27 MB] [bootstrap]
Found command: core-status (commandfile=core) [6.32 sec, 40.34 MB] [bootstrap]
Loading outputformat engine. [6.39 sec, 42.76 MB] [notice]
Calling hook drush_core_status [6.4 sec, 42.82 MB] [debug]
Returned from hook drush_core_status [6.41 sec, 42.88 MB] [debug]
Drupal version : 7.31
Site URI : something.dev
Database driver : mysql
Database hostname : localhost
Database port :
Database username : root
Database name : something
Database : Connected
Drupal bootstrap : Successful
Drupal user :
Default theme : something
Administration theme : rubik
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 : /var/www/docroot
Site path : sites/default
File directory path : sites/default/files
Private file directory path : sites/default/private
Temporary file directory path : /tmp

Command dispatch complete [6.42 sec, 43.02 MB] [notice]
Timer Cum (sec) Count Avg (msec)
page 6.195 1 6195.28
End redispatch via drush_invoke_process(). [6.81 sec, 6.96 MB]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment