fix: pull helper image on init
This commit is contained in:
parent
0045c5b7f4
commit
c9babe0731
2 changed files with 12 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
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 @@ public function handle()
|
|||
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 @@ public function handle()
|
|||
}
|
||||
}
|
||||
|
||||
private function pullHelperImage()
|
||||
{
|
||||
CheckHelperImageJob::dispatch();
|
||||
}
|
||||
|
||||
private function pullTemplatesFromCDN()
|
||||
{
|
||||
$response = Http::retry(3, 1000)->get(config('constants.services.official'));
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ services:
|
|||
- AUTOUPDATE
|
||||
- SSH_MUX_ENABLED
|
||||
- SSH_MUX_PERSIST_TIME
|
||||
- HELPER_IMAGE
|
||||
ports:
|
||||
- "${APP_PORT:-8000}:80"
|
||||
expose:
|
||||
|
|
|
|||
Loading…
Reference in a new issue