From 358fbf6b3dc86902fc054283da585c43197f41d4 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 6 Nov 2023 21:08:02 +0100 Subject: [PATCH] cleanup not forced --- app/Console/Commands/Init.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 1468b53cf..f2c9371f4 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -18,15 +18,18 @@ use Illuminate\Support\Facades\Storage; class Init extends Command { - protected $signature = 'app:init'; + protected $signature = 'app:init {--cleanup}'; protected $description = 'Cleanup instance related stuffs'; public function handle() { ray()->clearAll(); + $cleanup = $this->option('cleanup'); + if ($cleanup) { + $this->cleanup_stucked_resources(); + $this->cleanup_ssh(); + } $this->cleanup_in_progress_application_deployments(); - $this->cleanup_stucked_resources(); - // $this->cleanup_ssh(); } private function cleanup_ssh()