Skip to main content
removed tags from the title
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

drush site Site synchronization with aliases

deleted 67 characters in body; edited title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

drush site syncsynchronization with aliases

I configured the site aliases for devthe development, and staging sitesites. I have the <DRUPAL_HOME>/sites/default/aliases.drushrc.php aliases file with this content:

<?php

$aliases['dev'] = array(
                        'root' => '/home/drupaltest',
                        'uri' => 'localhost',
                        'path-aliases' => array(                                                    '%dump' => '/home/drupaltest/dump.sql')
                        );

$aliases['stage'] = array(
                        'root' => '/home/drupaltest',
                        'uri' => 'naftalin',
                        );


$aliases['all-scratch'] = array(
                                'site-list' => array('@dev', '@stage'),
                                );
 
?>

drush @dev status outputdrush @dev status outputs:

hubidubi@couscous:/home/drupaltest$ drush @dev status
 Drupal version         :  6.25                                                                
 Site URI               :  localhost                                                           
 Database driver        :  mysqli                                                              
 Database hostname      :  localhost                                                           
 Database username      :  root                                                                
 Database name          :  drupaltest                                                         
 Database               :  Connected                                                           
 Drupal bootstrap       :  Successful                                                          
 Drupal user            :  Anonymous                                                           
 Default theme          :  garland                                                             
 Administration theme   :  garland                                                             
 PHP configuration      :  /etc/php5/cli/php.ini                                               
 Drush version          :  4.4                                                                 
 Drush configuration    :                                                                      
 Drush alias files      :  /home/drupaltest/sites/default/aliases.drushrc.php 
 Drupal root            :  /home/drupaltest                                   
 Site path              :  sites/default                                                       
 File directory path    :  sites/default/files

hubidubi@couscous:/home/drupaltest$ drush @dev status Drupal version : 6.25
Site URI : localhost
Database driver : mysqli
Database hostname : localhost
Database username : root
Database name : drupaltest
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : garland
Administration theme : garland
PHP configuration : /etc/php5/cli/php.ini
Drush version : 4.4
Drush configuration :
Drush alias files : /home/drupaltest/sites/default/aliases.drushrc.php Drupal root : /home/drupaltest
Site path : sites/default
File directory path : sites/default/files

Could not evaluate source path @dev.

Could not evaluate source path @dev.

I can't figure out the problem,problem; I think the alias file is correct.

AnyDo you have any idea?

Hubidubi

drush site sync with aliases

I configured site aliases for dev and staging site. I have <DRUPAL_HOME>/sites/default/aliases.drushrc.php aliases file with this content:

<?php

$aliases['dev'] = array(
                        'root' => '/home/drupaltest',
                        'uri' => 'localhost',
                        'path-aliases' => array(                                                    '%dump' => '/home/drupaltest/dump.sql')
                        );

$aliases['stage'] = array(
                        'root' => '/home/drupaltest',
                        'uri' => 'naftalin',
                        );


$aliases['all-scratch'] = array(
                                'site-list' => array('@dev', '@stage'),
                                );
 
?>

drush @dev status output:

hubidubi@couscous:/home/drupaltest$ drush @dev status
 Drupal version         :  6.25                                                                
 Site URI               :  localhost                                                           
 Database driver        :  mysqli                                                              
 Database hostname      :  localhost                                                           
 Database username      :  root                                                                
 Database name          :  drupaltest                                                         
 Database               :  Connected                                                           
 Drupal bootstrap       :  Successful                                                          
 Drupal user            :  Anonymous                                                           
 Default theme          :  garland                                                             
 Administration theme   :  garland                                                             
 PHP configuration      :  /etc/php5/cli/php.ini                                               
 Drush version          :  4.4                                                                 
 Drush configuration    :                                                                      
 Drush alias files      :  /home/drupaltest/sites/default/aliases.drushrc.php 
 Drupal root            :  /home/drupaltest                                   
 Site path              :  sites/default                                                       
 File directory path    :  sites/default/files

Could not evaluate source path @dev.

I can't figure out the problem, I think the alias file is correct.

Any idea?

Hubidubi

drush site synchronization with aliases

I configured the site aliases for the development, and staging sites. I have the <DRUPAL_HOME>/sites/default/aliases.drushrc.php aliases file with this content:

$aliases['dev'] = array(
  'root' => '/home/drupaltest',
  'uri' => 'localhost',
  'path-aliases' => array('%dump' => '/home/drupaltest/dump.sql')
);

$aliases['stage'] = array(
  'root' => '/home/drupaltest',
  'uri' => 'naftalin',
);


$aliases['all-scratch'] = array(
  'site-list' => array('@dev', '@stage'),
);

drush @dev status outputs:

hubidubi@couscous:/home/drupaltest$ drush @dev status Drupal version : 6.25
Site URI : localhost
Database driver : mysqli
Database hostname : localhost
Database username : root
Database name : drupaltest
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : garland
Administration theme : garland
PHP configuration : /etc/php5/cli/php.ini
Drush version : 4.4
Drush configuration :
Drush alias files : /home/drupaltest/sites/default/aliases.drushrc.php Drupal root : /home/drupaltest
Site path : sites/default
File directory path : sites/default/files

Could not evaluate source path @dev.

I can't figure out the problem; I think the alias file is correct.

Do you have any idea?

Source Link

drush site sync with aliases

I configured site aliases for dev and staging site. I have <DRUPAL_HOME>/sites/default/aliases.drushrc.php aliases file with this content:

<?php

$aliases['dev'] = array(
                        'root' => '/home/drupaltest',
                        'uri' => 'localhost',
                        'path-aliases' => array(                                                    '%dump' => '/home/drupaltest/dump.sql')
                        );

$aliases['stage'] = array(
                        'root' => '/home/drupaltest',
                        'uri' => 'naftalin',
                        );


$aliases['all-scratch'] = array(
                                'site-list' => array('@dev', '@stage'),
                                );

?>

drush @dev status output:

hubidubi@couscous:/home/drupaltest$ drush @dev status
 Drupal version         :  6.25                                                                
 Site URI               :  localhost                                                           
 Database driver        :  mysqli                                                              
 Database hostname      :  localhost                                                           
 Database username      :  root                                                                
 Database name          :  drupaltest                                                         
 Database               :  Connected                                                           
 Drupal bootstrap       :  Successful                                                          
 Drupal user            :  Anonymous                                                           
 Default theme          :  garland                                                             
 Administration theme   :  garland                                                             
 PHP configuration      :  /etc/php5/cli/php.ini                                               
 Drush version          :  4.4                                                                 
 Drush configuration    :                                                                      
 Drush alias files      :  /home/drupaltest/sites/default/aliases.drushrc.php 
 Drupal root            :  /home/drupaltest                                   
 Site path              :  sites/default                                                       
 File directory path    :  sites/default/files

Then I tried to run drush rsync @dev @stage command to sync dev site to stage and I get:

Could not evaluate source path @dev.

I can't figure out the problem, I think the alias file is correct.

Any idea?

Hubidubi