From 3e5f37f2db655740da2ff993dbe869ef310e0fd0 Mon Sep 17 00:00:00 2001 From: varsha1305nav <87652813+varsha1305nav@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:18:09 +0530 Subject: [PATCH] addong commands to restart django and celery --- .github/workflows/deploy_prod_api.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy_prod_api.yml b/.github/workflows/deploy_prod_api.yml index 430a5623..1c1c0197 100644 --- a/.github/workflows/deploy_prod_api.yml +++ b/.github/workflows/deploy_prod_api.yml @@ -42,6 +42,9 @@ jobs: python3 manage.py migrate python3 manage.py collectstatic -link --noinput sudo systemctl restart nginx + nohup sh -c 'gunicorn -w 4 marketplace.wsgi:application > gunicorn.out 2>&1' & echo -ne '\n' + nohup sh -c 'celery -A marketplace worker -l info > celery_worker.out 2>&1' & echo -ne '\n' + nohup sh -c 'celery -A marketplace beat -l info > celery_beat.out 2>&1' & echo -ne '\n' - name: Remove Github Actions IP from security group