Add InstanceSettings to Init command

This commit is contained in:
Andras Bacsai 2023-11-15 10:20:48 +01:00
parent f4f7bdf7d5
commit 25bf8895e2

View File

@ -5,6 +5,7 @@
use App\Enums\ApplicationDeploymentStatus;
use App\Models\Application;
use App\Models\ApplicationDeploymentQueue;
use App\Models\InstanceSettings;
use App\Models\Service;
use App\Models\ServiceApplication;
use App\Models\ServiceDatabase;
@ -35,6 +36,11 @@ public function handle()
private function alive()
{
$id = config('app.id');
$settings = InstanceSettings::get();
$do_not_track = data_get($settings, 'do_not_track');
if ($do_not_track) {
return;
}
try {
Http::get("https://get.coollabs.io/coolify/v4/alive?appId=$id");
} catch (\Throwable $e) {