From 0f3e7a12232eda1637da05ed528271ca85d48c31 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:15:17 +0500 Subject: [PATCH] test deploy10 --- .github/workflows/prod_deploy.yaml | 4 ++-- infra/prod/adaptive_hockey_federation.service | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prod_deploy.yaml b/.github/workflows/prod_deploy.yaml index 8d9bd3a5..eb6cc863 100644 --- a/.github/workflows/prod_deploy.yaml +++ b/.github/workflows/prod_deploy.yaml @@ -125,5 +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 \ No newline at end of file + docker compose exec adaptive_hockey_federation python manage.py collectstatic --noinput + docker compose exec adaptive_hockey_federation python manage.py migrate \ No newline at end of file diff --git a/infra/prod/adaptive_hockey_federation.service b/infra/prod/adaptive_hockey_federation.service index 19208f60..c78b07e5 100644 --- a/infra/prod/adaptive_hockey_federation.service +++ b/infra/prod/adaptive_hockey_federation.service @@ -13,8 +13,10 @@ 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 +ExecStartPre=docker compose -f docker-compose.stage.yaml --env-file /home/developer/adaptive_hockey_federation/.env down +ExecStartPre=docker compose -f docker-compose.stage.yaml --env-file /home/developer/adaptive_hockey_federation/.env pull site +ExecStartPre=docker compose -f docker-compose.stage.yaml --env-file /home/developer/adaptive_hockey_federation/.env pull db +ExecStartPre=docker compose -f docker-compose.stage.yaml --env-file /home/developer/adaptive_hockey_federation/.env pull swag # compose up ExecStart=docker compose -f docker-compose.prod.yaml --env-file /home/production/adaptive_hockey_federation/.env up