fix: deploy script — replace broken bun --cwd with subshell cd for VPS build
CI / typecheck + build (turbo) (push) Canceled after 0s

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.
This commit is contained in:
asepharyana
2026-08-21 11:24:47 +07:00
parent 90e40c4d48
commit e8ed5980fc
+1 -1
View File
@@ -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