Add command to restart supervisor in clear-caches-all command

This commit is contained in:
Afiq Hamzah
2024-08-10 07:17:08 +08:00
parent 62f12914fd
commit f4fe3c9184
2 changed files with 72 additions and 0 deletions
+5
View File
@@ -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.");
}