Skip to content

Commit

Permalink
fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
eucyt committed May 14, 2023
1 parent 3db8b4b commit d652104
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@ 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
- sudo rm -r laravel/node_modules
- 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
docker-compose exec $(service_name) bash

0 comments on commit d652104

Please sign in to comment.