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