mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-23 16:12:11 +02:00
Make all Symfony2 tasks to gues where they should run (local or remote).
This commit is contained in:
parent
6f6cf2436a
commit
974304e707
|
@ -40,7 +40,7 @@ class AsseticDumpTask extends AbstractTask
|
|||
$env = $this->getParameter('env', 'dev');
|
||||
|
||||
$command = 'app/console assetic:dump --env=' . $env;
|
||||
$result = $this->runCommandLocal($command);
|
||||
$result = $this->runCommand($command);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ class AssetsInstallTask extends AbstractTask
|
|||
}
|
||||
|
||||
$command = 'app/console assets:install ' . ($symlink ? '--symlink' : '') . ' ' . ($relative ? '--relative' : '') . ' --env=' . $env . ' ' . $target;
|
||||
$result = $this->runCommandLocal($command);
|
||||
$result = $this->runCommand($command);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class CacheClearTask extends AbstractTask
|
|||
$env = $this->getParameter('env', 'dev');
|
||||
|
||||
$command = 'app/console cache:clear --env=' . $env;
|
||||
$result = $this->runCommandLocal($command);
|
||||
$result = $this->runCommand($command);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class CacheWarmupTask extends AbstractTask
|
|||
$env = $this->getParameter('env', 'dev');
|
||||
|
||||
$command = 'app/console cache:warmup --env=' . $env;
|
||||
$result = $this->runCommandLocal($command);
|
||||
$result = $this->runCommand($command);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue