diff --git a/run.sh b/run.sh index 4d93005..386111b 100755 --- a/run.sh +++ b/run.sh @@ -1,10 +1,31 @@ #!/bin/bash -set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$SCRIPT_DIR" set -ex -PATH="/usr/local/bin:$PATH" +# Check for LiveKit environment variables +if [ -z "$LIVEKIT_URL" ]; then + echo "Error: LIVEKIT_URL is not set." + exit 1 +fi + +if [ -z "$LIVEKIT_API_KEY" ]; then + echo "Error: LIVEKIT_API_KEY is not set." + exit 1 +fi + +if [ -z "$LIVEKIT_API_SECRET" ]; then + echo "Error: LIVEKIT_API_SECRET is not set." + exit 1 +fi + +PATH="/root/.nvm/versions/node/v20.19.5/bin:$PATH" +source /root/.bashrc + +echo $PATH + +set -euo pipefail + pnpm dev \ No newline at end of file