From d6521049573a97f94b5f1fe059f91b723fa4867c Mon Sep 17 00:00:00 2001 From: yuta Date: Sun, 14 May 2023 15:21:04 +0900 Subject: [PATCH] fix install --- Makefile | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 46b71b7..7be1876 100644 --- a/Makefile +++ b/Makefile @@ -2,20 +2,20 @@ service_name := laravel install: cp laravel/.env.local laravel/.env - sudo docker-compose up -d --build - sudo docker-compose exec $(service_name) composer install - sudo docker-compose exec $(service_name) php artisan key:generate + docker-compose up -d --build + docker-compose exec $(service_name) composer install + docker-compose exec $(service_name) php artisan key:generate make cache make migrate-fresh sudo chmod -R 777 laravel/storage -sudo rm laravel/public/storage - sudo docker-compose exec $(service_name) php artisan storage:link + docker-compose exec $(service_name) php artisan storage:link up: - sudo docker-compose up -d + docker-compose up -d down: - sudo docker-compose down + docker-compose down destroy: - sudo docker-compose down --rmi all --volumes --remove-orphans + docker-compose down --rmi all --volumes --remove-orphans - sudo rm -r docker/minio/config - sudo rm -r docker/minio/data - sudo rm laravel/.env @@ -23,25 +23,25 @@ destroy: - sudo rm -r laravel/vendor cache: - sudo docker-compose exec $(service_name) php artisan cache:clear - sudo docker-compose exec $(service_name) php artisan config:clear - sudo docker-compose exec $(service_name) php artisan route:clear - sudo docker-compose exec $(service_name) php artisan view:clear - sudo docker-compose exec $(service_name) composer dump-autoload - sudo docker-compose exec $(service_name) php artisan clear-compiled - sudo docker-compose exec $(service_name) php artisan optimize - sudo docker-compose exec $(service_name) php artisan config:cache + docker-compose exec $(service_name) php artisan cache:clear + docker-compose exec $(service_name) php artisan config:clear + docker-compose exec $(service_name) php artisan route:clear + docker-compose exec $(service_name) php artisan view:clear + docker-compose exec $(service_name) composer dump-autoload + docker-compose exec $(service_name) php artisan clear-compiled + docker-compose exec $(service_name) php artisan optimize + docker-compose exec $(service_name) php artisan config:cache migrate: - sudo docker-compose exec $(service_name) php artisan migrate + docker-compose exec $(service_name) php artisan migrate migrate-rollback: - sudo docker-compose exec $(service_name) php artisan migrate:rollback + docker-compose exec $(service_name) php artisan migrate:rollback migrate-fresh: - sudo docker-compose exec $(service_name) composer dump-autoload - sudo docker-compose exec $(service_name) php artisan migrate:fresh --seed + docker-compose exec $(service_name) composer dump-autoload + docker-compose exec $(service_name) php artisan migrate:fresh --seed test: - sudo docker-compose exec $(service_name) php artisan test + docker-compose exec $(service_name) php artisan test bash: - sudo docker-compose exec $(service_name) bash \ No newline at end of file + docker-compose exec $(service_name) bash \ No newline at end of file