Development

Changeset 33413

You must first sign up to be able to contribute.

Changeset 33413

Show
Ignore:
Timestamp:
04/19/12 20:24:56 (1 year ago)
Author:
boutell
Message:

* Syncing 'to' rather than 'from' is working again. This was briefly broken by the patch that introduced support for gzip compression of the database content. I missed it in my QA of that patch because I rarely use 'to'. My apologies.

* A 'symfony cc' is now performed on the receiving end. Recent versions of Apostrophe don't take kindly to being fired up with a cache that contains paths from another server, so this is a nice win.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSyncContentPlugin/trunk/lib/task/synccontentTask.class.php

    r33412 r33413  
    140140    if ($direction == 'to') 
    141141    { 
    142       $cmd = "$binary project:mysql-dump --application=$application --env=$env | " . $gzip . " | " . $this->_content_sync_build_remote_cmd($pathRemote, $gunzip . " | ./symfony project:mysql-load --application=$application --env=$envRemote"); 
     142      $cmd = "$binary project:mysql-dump --application=$application --env=$env | " . $gzip . " | " . $this->_content_sync_build_remote_cmd($pathRemote, $gunzip . " | ./symfony project:mysql-load --application=$application --env=$envRemote && ./symfony cc --env=$envRemote"); 
    143143      $this->_content_sync_system($cmd); 
    144144    } 
    145145    else 
    146146    { 
    147       $cmd = $this->_content_sync_build_remote_cmd($pathRemote, "./symfony project:mysql-dump --application=$application --env=$envRemote | " . $gzip) . " | " . $gunzip . " | $binary project:mysql-load --application=$application --env=$env"; 
     147      $cmd = $this->_content_sync_build_remote_cmd($pathRemote, "./symfony project:mysql-dump --application=$application --env=$envRemote | " . $gzip) . " | " . $gunzip . " | $binary project:mysql-load --application=$application --env=$env && ./symfony cc --env=$env"; 
    148148      $this->_content_sync_system($cmd); 
    149149    }