diff --git a/devbox/cli/devbox b/devbox/cli/devbox index f4a293b..46b9c9b 100644 --- a/devbox/cli/devbox +++ b/devbox/cli/devbox @@ -867,6 +867,12 @@ docker exec -i "$DEVBOX_NAME" bash < /home/devbox/logs/backend.logs 2>&1 & else echo "==> [BACKEND] Backend dependencies already installed. Skipping installation." + # Check if all dependencies are installed, if not, install them + if ! pip check; then + echo "==> [BACKEND] Some dependencies are missing. Reinstalling..." + pip install -r /home/devbox/freeleaps/apps/requirements.txt + fi + # Check if the backend service is already running SERVICE_API_ACCESS_PORT=\$(cat /home/devbox/.devbox-backend-port) uvicorn freeleaps.webapi.main:app --reload --host 0.0.0.0 --port \$SERVICE_API_ACCESS_PORT > /home/devbox/logs/backend.logs 2>&1 &