forked from freeleaps/freeleaps-pub
Update devbox/cli/devbox
This commit is contained in:
parent
79d3d226be
commit
38f5671cd0
@ -1020,7 +1020,7 @@ compile_backend_service() {
|
||||
# Check if it's the first time by verifying if the backend dependencies have been installed
|
||||
if [ ! -f "/home/devbox/.backend_deps_installed" ]; then
|
||||
echo "[BACKEND] \$(date '+%Y-%m-%d %H:%M:%S') Install backend dependencies..."
|
||||
pip install --no-cache-dir --force-reinstall -r /home/devbox/freeleaps/apps/freeleaps/requirements.txt
|
||||
pip install --no-cache-dir -r /home/devbox/freeleaps/apps/freeleaps/requirements.txt
|
||||
if ! pip show async_timeout; then
|
||||
echo "[BACKEND] \$(date '+%Y-%m-%d %H:%M:%S') async_timeout is missing. Installing..."
|
||||
pip install async_timeout
|
||||
@ -1066,7 +1066,7 @@ compile_backend_service() {
|
||||
|
||||
if [ \$IS_NEW_REQ_ADDED -eq 1 ]; then
|
||||
echo "[BACKEND] \$(date '+%Y-%m-%d %H:%M:%S') Reinstalling dependencies..."
|
||||
pip install --no-cache-dir --force-reinstall -r /home/devbox/freeleaps/apps/freeleaps/requirements.txt
|
||||
pip install --no-cache-dir -r /home/devbox/freeleaps/apps/freeleaps/requirements.txt
|
||||
fi
|
||||
# Undo update for /home/devbox/freeleaps/apps/requirements.txt
|
||||
rm /home/devbox/freeleaps/apps/freeleaps/requirements.txt
|
||||
@ -1080,7 +1080,7 @@ compile_backend_service() {
|
||||
# Check if all dependencies are installed, if not, install them
|
||||
if ! pip check; then
|
||||
echo "[BACKEND] \$(date '+%Y-%m-%d %H:%M:%S') Some dependencies are missing. Reinstalling..."
|
||||
pip install --no-cache-dir --force-reinstall -r /home/devbox/freeleaps/apps/freeleaps/requirements.txt
|
||||
pip install --no-cache-dir -r /home/devbox/freeleaps/apps/freeleaps/requirements.txt
|
||||
fi
|
||||
|
||||
# pip install async_timeout if not installed
|
||||
@ -1126,7 +1126,7 @@ compile_backend_service() {
|
||||
|
||||
if [ \$IS_NEW_REQ_ADDED -eq 1 ]; then
|
||||
echo "[BACKEND] \$(date '+%Y-%m-%d %H:%M:%S') Reinstalling dependencies..."
|
||||
pip install -r /home/devbox/freeleaps/apps/requirements.txt
|
||||
pip install --no-cache-dir -r /home/devbox/freeleaps/apps/requirements.txt
|
||||
fi
|
||||
|
||||
# Undo update for /home/devbox/freeleaps/apps/requirements.txt
|
||||
|
||||
Loading…
Reference in New Issue
Block a user