From 34ab147525569306719c12d749988b04064869d0 Mon Sep 17 00:00:00 2001 From: Jake Godsall Date: Thu, 5 Dec 2024 20:54:16 +0000 Subject: [PATCH] fixed docker compose commands --- .github/workflows/deploy.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c7162f8..9b21b19 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file