This commit is contained in:
2025-09-14 04:58:42 +00:00
parent 1818300d62
commit 2d94f2c12a

25
run.sh
View File

@@ -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