From 1ed0ca7b4c1a9c5584f2f7e7f334b31988a1f013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D0=B5=D0=B3=20=D0=93=D0=BE=D0=B2=D0=BE=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Fri, 27 Sep 2024 20:58:55 +0500 Subject: [PATCH] test deploy18 --- .github/workflows/prod_deploy.yaml | 6 ++---- infra/prod/adaptive_hockey_federation.service | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prod_deploy.yaml b/.github/workflows/prod_deploy.yaml index 2d248239..fb5ebff4 100644 --- a/.github/workflows/prod_deploy.yaml +++ b/.github/workflows/prod_deploy.yaml @@ -125,7 +125,5 @@ jobs: echo "adaptive_hockey_federation.service is active" - # docker exec adaptive_hockey_federation python manage.py collectstatic --noinput - # docker exec adaptive_hockey_federation python manage.py migrate - docker compose -f docker-compose.prod.yaml --env-file /home/production/adaptive_hockey_federation/.env exec adaptive_hockey_federation python manage.py collectstatic --noinput - docker compose -f docker-compose.prod.yaml --env-file /home/production/adaptive_hockey_federation/.env exec adaptive_hockey_federation python manage.py migrate \ No newline at end of file + docker exec adaptive_hockey_federation python manage.py collectstatic --noinput + docker exec adaptive_hockey_federation python manage.py migrate diff --git a/infra/prod/adaptive_hockey_federation.service b/infra/prod/adaptive_hockey_federation.service index ab7b15c8..25bfa9bf 100644 --- a/infra/prod/adaptive_hockey_federation.service +++ b/infra/prod/adaptive_hockey_federation.service @@ -14,7 +14,7 @@ User=production WorkingDirectory=/home/production/adaptive_hockey_federation/infra/prod/ ExecStartPre=docker compose -f docker-compose.prod.yaml --env-file /home/production/adaptive_hockey_federation/.env down -ExecStartPre=docker compose -f docker-compose.prod.yaml --env-file /home/production/adaptive_hockey_federation/.env pull site +ExecStartPre=docker compose -f docker-compose.prod.yaml --env-file /home/production/adaptive_hockey_federation/.env pull adaptive_hockey_federation ExecStartPre=docker compose -f docker-compose.prod.yaml --env-file /home/production/adaptive_hockey_federation/.env pull db ExecStartPre=docker compose -f docker-compose.prod.yaml --env-file /home/production/adaptive_hockey_federation/.env pull swag