make a hotfix for async_timeout installation

This commit is contained in:
timqiu 2025-03-18 14:12:17 +08:00
parent e0674461fe
commit e58ffaebe0

View File

@ -907,6 +907,10 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
if [ ! -f "/home/devbox/.backend_deps_installed" ]; then
echo "==> [BACKEND] Install backend dependencies..."
pip install -r /home/devbox/freeleaps/apps/requirements.txt
if ! pip show async_timeout; then
echo "==> [BACKEND] async_timeout is missing. Installing..."
pip install async_timeout
fi
touch /home/devbox/.backend_deps_installed
echo "==> [BACKEND] Run backend service..."
@ -918,6 +922,11 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
echo "==> [BACKEND] Some dependencies are missing. Reinstalling..."
pip install -r /home/devbox/freeleaps/apps/requirements.txt
fi
# pip install async_timeout if not installed
if ! pip show async_timeout; then
echo "==> [BACKEND] async_timeout is missing. Installing..."
pip install async_timeout
fi
# Check if the backend service is already running
SERVICE_API_ACCESS_PORT=\$(cat /home/devbox/.devbox-backend-port)