fix: check health endpoint instead of awaiting service restart to fix update success status

This commit is contained in:
UndefinedPony
2024-12-31 11:20:59 +01:00
parent 2be79304fb
commit 187f051484
2 changed files with 71 additions and 30 deletions

View File

@@ -359,7 +359,9 @@ export const settingsRouter = createTRPCRouter({
await pullLatestRelease();
await spawnAsync("docker", [
// This causes restart of dokploy, thus it will not finish executing properly, so don't await it
// Status after restart is checked via frontend /api/health endpoint
void spawnAsync("docker", [
"service",
"update",
"--force",