Skip to content

Commit

Permalink
fixed docker compose commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jakegodsall committed Dec 5, 2024
1 parent daad494 commit 34ab147
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ jobs:
# In this approach, we assume you have docker-compose files already present on the EC2 instance
# Or, you can store them in S3 or a config repository, and sync them if needed.
# Change directory to the data dir
cd /data
# Pull the latest Docker image
docker compose pull
docker-compose pull
# Run database migrations (assuming Django app is the "web" service):
docker compose run --rm web python manage.py migrate --noinput
docker-compose run --rm web python manage.py migrate --noinput
# Bring up the containers
docker compose up -d
docker-compose up -d
EOF

0 comments on commit 34ab147

Please sign in to comment.