From f4f7bdf7d52aafb3670b5c68fa789dc2351570fb Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 15 Nov 2023 10:18:41 +0100 Subject: [PATCH] Update dependencies and add new feature --- app/Console/Commands/Init.php | 13 +++++++++++-- config/sentry.php | 2 +- config/version.php | 2 +- versions.json | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index f2c9371f4..cdac6d74f 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -14,6 +14,7 @@ use App\Models\StandaloneMysql; use App\Models\StandalonePostgresql; use App\Models\StandaloneRedis; use Illuminate\Console\Command; +use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Storage; class Init extends Command @@ -23,7 +24,7 @@ class Init extends Command public function handle() { - ray()->clearAll(); + $this->alive(); $cleanup = $this->option('cleanup'); if ($cleanup) { $this->cleanup_stucked_resources(); @@ -31,7 +32,15 @@ class Init extends Command } $this->cleanup_in_progress_application_deployments(); } - + private function alive() + { + $id = config('app.id'); + try { + Http::get("https://get.coollabs.io/coolify/v4/alive?appId=$id"); + } catch (\Throwable $e) { + echo "Error in alive: {$e->getMessage()}\n"; + } + } private function cleanup_ssh() { try { diff --git a/config/sentry.php b/config/sentry.php index b29827de0..6e7ff7cbc 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.135', + 'release' => '4.0.0-beta.136', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index fe6dd8010..781d975f1 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@