webui / start.sh
ЯRаСлав
Start script added.
928763a
raw
history blame
566 Bytes
#!/bin/bash
echo "[start.sh] Starting MongoDB..." 😎
mkdir -p /data/db
find /data/db -name "*.lock" -type f -exec rm -f {} \;
mongod &
echo "[start.sh] Starting text-generation-inference..." 🚀
text-generation-launcher --model-id ${MODEL_NAME} --num-shard 1 --port 8080 --trust-remote-code &
echo "[start.sh] Waiting for model to become healthy..."
curl --retry 60 --retry-delay 10 --retry-connrefused http://127.0.0.1:8080/health
echo "[start.sh] Launching WebUI..." 🌐
dotenv -e /app/.env -c -- node /app/build/index.js -- --host 0.0.0.0 --port 3000