From 55937308b3dac767c9667ce450940901ab357498 Mon Sep 17 00:00:00 2001 From: LyAhn Date: Tue, 28 Apr 2026 14:17:59 +0100 Subject: [PATCH] feat: pass --cpu flag through dev.sh to server/start.sh --- dev.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev.sh b/dev.sh index d649e5c..8d879fc 100644 --- a/dev.sh +++ b/dev.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash # VibePod dev launcher # Starts all services and kills the entire process group cleanly on Ctrl+C. +# +# Usage: +# ./dev.sh — start with CUDA (default) +# ./dev.sh --cpu — start server in CPU-only mode (separate .venv-cpu) set -uo pipefail @@ -16,10 +20,13 @@ prefix() { done } +# Forward any flags (e.g. --cpu) straight to start.sh +SERVER_FLAGS=("$@") + echo "Starting VibePod — Ctrl+C to stop all" echo "" -bash server/start.sh 2>&1 | prefix "[SERVER]" "$CY" & +bash server/start.sh "${SERVER_FLAGS[@]+${SERVER_FLAGS[@]}}" 2>&1 | prefix "[SERVER]" "$CY" & pnpm --filter vibepod-web dev 2>&1 | prefix "[WEB]" "$MG" & wait