Skip to content

Commit

Permalink
Merge pull request #1501 from bakaphp/fix-docker-compose-dev
Browse files Browse the repository at this point in the history
use shell command for clearcache
  • Loading branch information
rwhite27 committed Jun 12, 2024
2 parents a38a141 + d513157 commit 9e4b939
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ec2-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ jobs:
username: ${{ secrets.AWS_EC2_USERNAME }}
key: ${{ secrets.AWS_EC2_PRIVATE_SSH_KEY }}
script: |
docker exec -i phpkanvas-ecosystem php artisan lighthouse:cache
docker exec -i phpkanvas-ecosystem php artisan config:cache
cd ${{secrets.AWS_EC2_TARGET_DIR}}
chmod +x clear_cache.sh
./clear_cache.sh
4 changes: 4 additions & 0 deletions clear_cache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

docker exec -i phpkanvas-ecosystem php artisan lighthouse:cache
docker exec -i phpkanvas-ecosystem php artisan config:cache

0 comments on commit 9e4b939

Please sign in to comment.