#42: Clear caches before updating Composer
This commit is contained in:
parent
5092335761
commit
ace6917c7d
@ -100,7 +100,25 @@ php artisan clear-compiled
|
||||
echo nl2br($result);
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user