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