Files
research_meet/run.sh
2025-09-14 04:58:42 +00:00

31 lines
527 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
set -ex
# 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