forked from freeleaps/freeleaps-pub
make a hotfix for async_timeout installation
This commit is contained in:
parent
e0674461fe
commit
e58ffaebe0
@ -907,6 +907,10 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
|||||||
if [ ! -f "/home/devbox/.backend_deps_installed" ]; then
|
if [ ! -f "/home/devbox/.backend_deps_installed" ]; then
|
||||||
echo "==> [BACKEND] Install backend dependencies..."
|
echo "==> [BACKEND] Install backend dependencies..."
|
||||||
pip install -r /home/devbox/freeleaps/apps/requirements.txt
|
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
|
touch /home/devbox/.backend_deps_installed
|
||||||
echo "==> [BACKEND] Run backend service..."
|
echo "==> [BACKEND] Run backend service..."
|
||||||
@ -918,6 +922,11 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
|||||||
echo "==> [BACKEND] Some dependencies are missing. Reinstalling..."
|
echo "==> [BACKEND] Some dependencies are missing. Reinstalling..."
|
||||||
pip install -r /home/devbox/freeleaps/apps/requirements.txt
|
pip install -r /home/devbox/freeleaps/apps/requirements.txt
|
||||||
fi
|
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
|
# Check if the backend service is already running
|
||||||
SERVICE_API_ACCESS_PORT=\$(cat /home/devbox/.devbox-backend-port)
|
SERVICE_API_ACCESS_PORT=\$(cat /home/devbox/.devbox-backend-port)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user