Add to clear-caches-all command to show output when exec restart supervisor
This commit is contained in:
@@ -77,6 +77,13 @@ class ClearCachesAll extends Command
|
|||||||
$output = [];
|
$output = [];
|
||||||
$returnVar = null;
|
$returnVar = null;
|
||||||
exec('php artisan supervisor:restart 2>&1', $output, $returnVar);
|
exec('php artisan supervisor:restart 2>&1', $output, $returnVar);
|
||||||
|
|
||||||
|
// output result of command RestartSupervisor
|
||||||
|
if ($returnVar === 0) {
|
||||||
|
$this->info("Restart Supervisor ran successfully:\n" . implode("\n", $output));
|
||||||
|
} else {
|
||||||
|
$this->error("Restart Supervisor failed:\n" . implode("\n", $output));
|
||||||
|
}
|
||||||
|
|
||||||
$this->info("All caches have been cleared.");
|
$this->info("All caches have been cleared.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user