From 858be319b0009b5cf8fdf991d42395e413c8b3d7 Mon Sep 17 00:00:00 2001 From: Rafael White Date: Wed, 12 Jun 2024 17:31:43 -0400 Subject: [PATCH] cd to target dir --- .github/workflows/ec2-deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ec2-deploy.yaml b/.github/workflows/ec2-deploy.yaml index fa5ee67a0..e300f1fba 100644 --- a/.github/workflows/ec2-deploy.yaml +++ b/.github/workflows/ec2-deploy.yaml @@ -37,6 +37,7 @@ jobs: username: ${{ secrets.AWS_EC2_USERNAME }} key: ${{ secrets.AWS_EC2_PRIVATE_SSH_KEY }} script: | + cd ${{secrets.AWS_EC2_TARGET_DIR}} docker compose -f docker-compose.dev.yml up -d docker exec -i phpkanvas-ecosystem php artisan lighthouse:cache docker exec -i phpkanvas-ecosystem php artisan config:cache