From e8ed5980fca013608ed06e09d6eb3499d982113e Mon Sep 17 00:00:00 2001 From: asepharyana Date: Fri, 21 Aug 2026 11:24:47 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20deploy=20script=20=E2=80=94=20replace=20?= =?UTF-8?q?broken=20bun=20--cwd=20with=20subshell=20cd=20for=20VPS=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'bun --cwd apps/web run build' on VPS was silently failing — bun doesn't support --cwd flag, printed usage, exited 0. Then on the GitHub runner, turbo couldn't find package manager binary. Fix: use 'cd apps/web && bun run build && cd ..' in SSH script. CI build step also uses turbo --filter for proper workspace isolation. --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bcffec6..7ff5285 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,7 +46,7 @@ jobs: cd /home/code/mcpedia git pull origin main /home/code/.bun/bin/bun install --frozen-lockfile - /home/code/.bun/bin/bun run build --filter=@mcpedia/web + cd apps/web && /home/code/.bun/bin/bun run build && cd /home/code/mcpedia /home/code/.bun/bin/bun run scripts/indexer.ts sudo systemctl restart mcpedia-web mcpedia-api mcpedia-mcp mcpedia-worker sleep 3