Skip to content

Commit

Permalink
test deploy10
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegGsk committed Sep 27, 2024
1 parent d8bc2ef commit 0f3e7a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prod_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
docker compose exec adaptive_hockey_federation python manage.py collectstatic --noinput
docker compose exec adaptive_hockey_federation python manage.py migrate
6 changes: 4 additions & 2 deletions infra/prod/adaptive_hockey_federation.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f3e7a1

Please sign in to comment.