15 lines
378 B
Bash
Executable File
15 lines
378 B
Bash
Executable File
#!/bin/bash
|
|
# media-server start script
|
|
cd "$(dirname "$0")"
|
|
export PYTHONPATH=/share/vllm-0.8.5/lib/python3.10/site-packages:$PYTHONPATH
|
|
|
|
PORT=${1:-9080}
|
|
|
|
# Update port in config if different
|
|
if [ "$PORT" != "9080" ]; then
|
|
sed -i "s/\"port\": 9080/\"port\": $PORT/" conf/config.json
|
|
fi
|
|
|
|
echo "Starting media-server on port $PORT..."
|
|
exec /share/vllm-0.8.5/bin/python ah.py
|