From 44957bfe81cfe2e04f5c86f6ec056523f90a90cf Mon Sep 17 00:00:00 2001 From: RezenkovD Date: Wed, 24 Jan 2024 21:51:17 +0200 Subject: [PATCH] fix: remove kill from cd --- .github/workflows/ci-cd.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 346e8a5..3951646 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -167,15 +167,6 @@ jobs: export ALLOWED_HOSTS='${{ secrets.ALLOWED_HOSTS }}' export DOMAIN_NAME='${{ secrets.DOMAIN_NAME }}' - uvicorn_pid=$(pgrep -f "uvicorn main:app") - - if [ -n "$uvicorn_pid" ]; then - echo "Stopping uvicorn process..." - kill -15 "$uvicorn_pid" # Send SIGTERM - else - echo "No uvicorn process running." - fi - git pull pip3 install -r requirements.txt alembic upgrade head