fix: deploy script — replace broken bun --cwd with subshell cd for VPS build
CI / typecheck + build (turbo) (push) Canceled after 0s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user