protected static $_farmServers = [
['name' => 'alphaville', 'host' => 'fluidbook-processfarm', 'port' => 9000, 'weight' => 12, 'region' => Region::EUROPE],
- ['name' => 'brazil', 'host' => 'brazil.cubedesigners.com', 'weight' => 6, 'region' => Region::EUROPE],
+ ['name' => 'brazil', 'host' => 'brazil.cubedesigners.com', 'weight' => 6, 'region' => Region::USA],
['name' => 'clockwork', 'host' => 'clockwork.cubedesigners.com', 'weight' => 2, 'region' => Region::EUROPE],
['name' => 'dracula', 'host' => 'dracula.cubedesigners.com', 'weight' => 6, 'region' => Region::EUROPE],
['name' => 'dobermann', 'host' => 'dobermann.cubedesigners.com', 'weight' => 6, 'region' => Region::EUROPE],
$to = $this->path('', $newRegion);
$rsync = new Rsync($from, $to, false);
$rsync->setMove(true);
+ $rsync->setFollowSymlinks(true);
+ $rsync->execute();
+
+ $rsync = new Rsync($from, $to, false);
+ $rsync->setMove(true);
+ $rsync->setCopySymlinksAsSymlinks(true);
$rsync->execute();
}
$this->region = $newRegion;
$to = $this->protected_path('fluidbookpublication/' . $dir . '/' . $this->id, $newRegion);
$rsync = new Rsync($from, $to, false);
$rsync->setMove(true);
+ $rsync->setFollowSymlinks(true);
+ $rsync->execute();
+
+ $rsync = new Rsync($from, $to, false);
+ $rsync->setMove(true);
+ $rsync->setCopySymlinksAsSymlinks(true);
$rsync->execute();
}
}