#42: Clear caches before updating Composer

This commit is contained in:
Andy Heathershaw 2017-09-17 12:30:36 +01:00
parent 5092335761
commit ace6917c7d

View File

@ -100,7 +100,25 @@ php artisan clear-compiled
echo nl2br($result); echo nl2br($result);
if ($rc != 0) if ($rc != 0)
{ {
$this->echoError('Updating Composer packages failed'); $this->echoError('clear-compiled command failed');
return false;
}
system('php artisan cache:clear', $rc);
$result = ob_get_clean();
echo nl2br($result);
if ($rc != 0)
{
$this->echoError('cache:clear command failed');
return false;
}
system('php artisan view:clear', $rc);
$result = ob_get_clean();
echo nl2br($result);
if ($rc != 0)
{
$this->echoError('view:clear command failed');
return false; return false;
} }