diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index f4b7c1565..57bbe896b 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -4,6 +4,7 @@ namespace App\Console\Commands; use App\Enums\ActivityTypes; use App\Enums\ApplicationDeploymentStatus; +use App\Jobs\CheckHelperImageJob; use App\Models\ApplicationDeploymentQueue; use App\Models\Environment; use App\Models\ScheduledDatabaseBackup; @@ -60,6 +61,12 @@ class Init extends Command echo "[4]: Cleanup stucked resources.\n"; $this->call('cleanup:stucked-resources'); + try { + $this->pullHelperImage(); + } catch (\Throwable $e) { + // + } + if (isCloud()) { try { $this->pullTemplatesFromCDN(); @@ -91,6 +98,11 @@ class Init extends Command } } + private function pullHelperImage() + { + CheckHelperImageJob::dispatch(); + } + private function pullTemplatesFromCDN() { $response = Http::retry(3, 1000)->get(config('constants.services.official')); diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index bb8e28e95..d86b2336b 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -53,7 +53,6 @@ services: - AUTOUPDATE - SSH_MUX_ENABLED - SSH_MUX_PERSIST_TIME - - HELPER_IMAGE ports: - "${APP_PORT:-8000}:80" expose: