Remove unnecessary echo and add alive message
This commit is contained in:
parent
0459b3a115
commit
6d49678842
@ -35,14 +35,15 @@ class Init extends Command
|
|||||||
}
|
}
|
||||||
private function alive()
|
private function alive()
|
||||||
{
|
{
|
||||||
echo "Sending alive request.\n";
|
|
||||||
$id = config('app.id');
|
$id = config('app.id');
|
||||||
$settings = InstanceSettings::get();
|
$settings = InstanceSettings::get();
|
||||||
$do_not_track = data_get($settings, 'do_not_track');
|
$do_not_track = data_get($settings, 'do_not_track');
|
||||||
if ($do_not_track == true) {
|
if ($do_not_track == true) {
|
||||||
|
echo "Skipping alive as do_not_track is enabled\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
echo "I am alive!\n";
|
||||||
Http::get("https://get.coollabs.io/coolify/v4/alive?appId=$id");
|
Http::get("https://get.coollabs.io/coolify/v4/alive?appId=$id");
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
echo "Error in alive: {$e->getMessage()}\n";
|
echo "Error in alive: {$e->getMessage()}\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user