mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-16 12:35:04 +02:00
Make all Magento tasks to gues where they should run (local or remote).
This commit is contained in:
parent
974304e707
commit
fdc9f4e12e
|
@ -37,7 +37,7 @@ class ClearCacheTask extends AbstractTask
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$command = 'rm -rf var/cache/*';
|
$command = 'rm -rf var/cache/*';
|
||||||
$result = $this->runCommandLocal($command);
|
$result = $this->runCommand($command);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class ClearFullPageCacheTask extends AbstractTask
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$command = 'rm -rf var/full_page_cache/*';
|
$command = 'rm -rf var/full_page_cache/*';
|
||||||
$result = $this->runCommandLocal($command);
|
$result = $this->runCommand($command);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue