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 = [];
|
||||
$returnVar = null;
|
||||
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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user