Skip to content

Commit

Permalink
Update ClusterNode.php
Browse files Browse the repository at this point in the history
  • Loading branch information
xrow committed Apr 3, 2018
1 parent d14877b commit c87a905
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xrow/eZCluster/ClusterNode.php
Expand Up @@ -147,6 +147,9 @@ public function copyDataFromSource($name = null, $copydb = true, $copydata = tru
} elseif (file_exists($environment->dir . "/" . "ezpublish/console")) {
$environment->run("php ezpublish/console --env=prod cache:clear", array(), $environment->dir );
$environment->run("php ezpublish/console --env=dev cache:clear", array(), $environment->dir );
} elseif (file_exists($environment->dir . "/" . "bin/console")) {
$environment->run("php bin/console --env=prod cache:clear", array(), $environment->dir );
$environment->run("php bin/console --env=dev cache:clear", array(), $environment->dir );
} elseif (file_exists($environment->dir . "/" . "app/console")) {
$environment->run("php app/console --env=prod cache:clear", array(), $environment->dir );
$environment->run("php app/console --env=dev cache:clear", array(), $environment->dir );
Expand Down

0 comments on commit c87a905

Please sign in to comment.