forked from freeleaps/freeleaps-pub
Merge branch 'master' into timqiu/devbox
This commit is contained in:
commit
7da455f599
@ -912,6 +912,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
|
||||
|
||||
# Backup the requirements.txt file
|
||||
cp /home/devbox/freeleaps/apps/requirements.txt /home/devbox/freeleaps/apps/requirements.txt.bak
|
||||
@ -955,6 +959,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
|
||||
|
||||
## Backup the requirements.txt file
|
||||
cp /home/devbox/freeleaps/apps/requirements.txt /home/devbox/freeleaps/apps/requirements.txt.bak
|
||||
|
||||
Loading…
Reference in New Issue
Block a user