Skip to content

Commit

Permalink
Merge pull request #1495 from bakaphp/fix-docker-compose-dev
Browse files Browse the repository at this point in the history
Fix-docker-compose-dev
  • Loading branch information
rwhite27 authored Jun 12, 2024
2 parents 0bd1e66 + d8d296d commit 9d24ab2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ec2-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,16 @@ jobs:
username: ${{ secrets.AWS_EC2_USERNAME }}
key: ${{ secrets.AWS_EC2_PRIVATE_SSH_KEY }}
source: .
target: ${{secrets.AWS_EC2_TARGET_DIR}}
target: ${{secrets.AWS_EC2_TARGET_DIR}}
laravel-command:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.AWS_EC2_HOST }}
username: ${{ secrets.AWS_EC2_USERNAME }}
key: ${{ secrets.AWS_EC2_PRIVATE_SSH_KEY }}
script: |
docker exec -it phpkanvas-ecosystem php artisan lighthouse:cache && php artisan config:cache
4 changes: 4 additions & 0 deletions development.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ WORKDIR /var/www/html/
RUN cp docker/docker-php-ext-opcache-prod.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
RUN cp docker/php.ini /usr/local/etc/php/conf.d/zx-app-config.ini

RUN chmod -R 755 /var/www/html/
RUN chmod -R 777 /var/www/html/storage/
RUN chmod -R 777 /var/www/html/storage/logs/

RUN composer install --optimize-autoloader

EXPOSE 8080

0 comments on commit 9d24ab2

Please sign in to comment.