From 7a342a66745a5c31d6b339cdd5353910b07e989a Mon Sep 17 00:00:00 2001 From: Everaldo Date: Tue, 24 Sep 2024 10:52:10 -0700 Subject: [PATCH] Upgrade pip in the deployment process. (#266) --- .github/workflows/deploy-dev.yml | 1 + .github/workflows/deploy-prod.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index b86c649d..f795f97b 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -43,6 +43,7 @@ jobs: cd /home/ubuntu/smartapi source .env/bin/activate echo "Installing backend requirements." + pip install --upgrade pip pip install -Ur requirements.txt --no-cache-dir --ignore-installed --force-reinstall echo "Restarting smartapi backend services..." sudo systemctl restart smartapi@8000 diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 55dbbc83..9bc025ed 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -39,6 +39,7 @@ jobs: cd /home/ubuntu/smartapi source .env/bin/activate echo "Installing backend requirements." + pip install --upgrade pip pip install -Ur requirements.txt --no-cache-dir --ignore-installed --force-reinstall echo "Restarting smartapi backend services..." sudo systemctl restart smartapi@8000