Add command to restart supervisor in clear-caches-all command
This commit is contained in:
@@ -72,6 +72,11 @@ class ClearCachesAll extends Command
|
||||
} else {
|
||||
$this->error("Composer install failed:\n" . implode("\n", $output));
|
||||
}
|
||||
|
||||
// run command RestartSupervisor
|
||||
$output = [];
|
||||
$returnVar = null;
|
||||
exec('php artisan supervisor:restart 2>&1', $output, $returnVar);
|
||||
|
||||
$this->info("All caches have been cleared.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user