Hi,

i used a simalar setting like the one below in "aliases.drushrc.php" just a week ago and then my targetsite was found. The upgrade process started.

I dowloaded the latest 5 version of DRUSH yesterday and tried again a local site upgrade. The code in "aliases.drushrc.php" is:

<?php
$aliases['targetsite'] = array( 
'uri' => 'http://127.0.0.1/vvwaspikd7.html',
'root' => 'D:\xampp\htdocs\vvwaspikd7',
'db-url' => 'mysql://pvo:waspik@127.0.0.1/vvwaspik_drup7',
)
?>

My D6 site is in :D:\xampp\htdocs\"
I want my D7 site to be in "D:\xampp\htdocs\vvwaspikd7"

Comments

greg.1.anderson’s picture

Status: Active » Postponed (maintainer needs more info)

Use drush status and drush sa to find out if your aliases.drushrc.php is being found by Drush.

PvO’s picture

I do not knwo for Drush sa but I think Drush status is showing the file is found:

D:\xampp\htdocs>drush status
 Drupal version         :  6.22
 Site URI               :  http://default
 Database driver        :  mysql
 Database hostname      :  localhost
 Database username      :  pvo
 Database name          :  vvwaspik_drup1
 Database               :  Connected
 Drupal bootstrap       :  Successful
 Drupal user            :  Anoniem
 Default theme          :  pixture_reloaded
 Administration theme   :  pixture_reloaded
 PHP configuration      :  D:\Program Files\Propeople\Drush\Php\php.ini
 Drush version          :  5.0-dev
 Drush configuration    :
 Drush alias files      :  /xampp/htdocs/aliases.drushrc.php
                           D:/xampp/htdocs/aliases.drushrc.php
 Drupal root            :  D:/xampp/htdocs
 Site path              :  sites/default
 File directory path    :  sites/default/files


D:\xampp\htdocs>drush sa
@none
@self
@targetsite
default
greg.1.anderson’s picture

What is the output of drush sa? Does it work better if you add a ; at the end of your array definition?

PvO’s picture

Status: Fixed » Postponed (maintainer needs more info)

The output of drush sa is n my previous answer and here is drush sa --full:

D:\xampp\htdocs>drush sa --full
$aliases['none'] = array (
  'root' => '',
  'uri' => '',
);
$aliases['self'] = array (
  'root' => 'D:/xampp/htdocs',
  'uri' => 'http://default',
);
$aliases['targetsite'] = array (
  'uri' => 'http://127.0.0.1/vvwaspikd7.html',
  'root' => 'D:\\xampp\\htdocs\\vvwaspikd7',
);
$aliases['default'] = array (
  'root' => 'D:/xampp/htdocs',
  'uri' => 'http://default',
);

No difference after adding ";"

greg.1.anderson’s picture

Status: Postponed (maintainer needs more info) » Fixed

The local site alias is recognized and working.

PvO’s picture

Status: Active » Fixed

Yes, but the site-upgrade does not start with the error

Site alias not found: targetsite. See example.drushrc.php.               [error]
PvO’s picture

Status: Postponed (maintainer needs more info) » Active
greg.1.anderson’s picture

Status: Fixed » Closed (duplicate)

There is no info here about what you are doing with the site-upgrade command, but maybe you should try @targetsite instead of targetsite. Also, this is a dup of your existing site-upgrade issue.

greg.1.anderson’s picture

Issue summary: View changes

replaced 'once' by just a week ago