This commit is contained in:
Andras Bacsai
2023-06-15 11:14:50 +02:00
parent 01808d3e71
commit fc039361b6

View File

@@ -36,11 +36,10 @@
if (checkHealthInterval) clearInterval(checkHealthInterval); if (checkHealthInterval) clearInterval(checkHealthInterval);
window.location.reload(); window.location.reload();
}, 2000) }, 2000)
} else {
console.log('Waiting for server to come back from dead...');
} }
}) })
.catch(error => {
console.log('Waiting for server to come back from dead...');
});
return; return;
}, 2000); }, 2000);
} }
@@ -52,14 +51,13 @@
.then(response => { .then(response => {
if (response.ok) { if (response.ok) {
console.log('It\'s alive. Waiting for server to be dead...'); console.log('It\'s alive. Waiting for server to be dead...');
} } else {
})
.catch(error => {
Toaster.success('Update done, restarting Coolify!') Toaster.success('Update done, restarting Coolify!')
console.log('It\'s dead. Reviving... Standby... Bzz... Bzz...') console.log('It\'s dead. Reviving... Standby... Bzz... Bzz...')
if (checkIfIamDeadInterval) clearInterval(checkIfIamDeadInterval); if (checkIfIamDeadInterval) clearInterval(checkIfIamDeadInterval);
revive(); revive();
}); }
})
return; return;
}, 2000); }, 2000);
} }