From cb9cc51969aa4e952c8922e9803dc6b1b0144828 Mon Sep 17 00:00:00 2001 From: Ivan Pegashev Date: Wed, 1 May 2024 18:46:45 +0300 Subject: [PATCH] bugfix(server): release new verison for macos arm bugfix start server on macos --- .github/workflows/build.yaml | 4 ++-- src/common/server/index.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3f1a9f2..c6fae7e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -312,11 +312,11 @@ jobs: }, "arm64": { cpu: { - checksum: "51ce309f4f5d055fd226a154784812fce10396ad8f8b3478b94fff24569a5063", + checksum: "02be1bb313324e5f5d198acec61a68059f1694d4d13189ef52e9a3b427087ccb", url: "https://s3.firecoder.cc/macOS-arm64", }, metal: { - checksum: "51ce309f4f5d055fd226a154784812fce10396ad8f8b3478b94fff24569a5063", + checksum: "02be1bb313324e5f5d198acec61a68059f1694d4d13189ef52e9a3b427087ccb", url: "https://s3.firecoder.cc/macOS-arm64-metal" }, } diff --git a/src/common/server/index.ts b/src/common/server/index.ts index 81efeda..1aa4d50 100644 --- a/src/common/server/index.ts +++ b/src/common/server/index.ts @@ -132,6 +132,7 @@ class Server { ], { detached: false, + shell: true, } ); @@ -191,6 +192,7 @@ class Server { this.serverProcess.on("close", (code) => { Logger.trace(`child process exited with code ${code}`, { component: "llama", + sendTelemetry: true, }); }); @@ -233,7 +235,7 @@ class Server { const osplatform = os.platform(); const osmachine = os.machine(); const isMacArm64 = osplatform === "darwin" && osmachine === "arm64"; - const res = await fetch(`${this.serverUrl}/${"health"}`, { + const res = await fetch(`${this.serverUrl}/health`, { method: "GET", }); if (res.ok) {