diff --git a/Makefile b/Makefile index 19d8b58..0217b5b 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,14 @@ include .env.infra-example clone: git clone ${MY_APP_GIT_URL} app -compose-up: +start: docker-compose up -d -compose-down: +stop: docker-compose down --remove-orphans -v +restart: stop start + status: docker-compose ps @@ -54,7 +56,7 @@ mysql-console: start-frontend: docker-compose exec php-fpm npm run watch -start-frontend-prod: +build-frontend-prod: docker-compose exec php-fpm npm run production make-storage-link: @@ -63,4 +65,5 @@ make-storage-link: node-frontend-deps: docker-compose exec php-fpm npm i --legacy-peer-deps -init: clone compose-down compose-up setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations node-frontend-deps start-frontend-prod fix-permissions make-storage-link +init: clone copy-infra-env restart setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations node-frontend-deps build-frontend-prod fix-permissions make-storage-link + diff --git a/README.md b/README.md index 60034d1..d1c0102 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Run in Linux, MacOS or Windows WSL terminal the docker development server and bu ``` After all stop the project ``` -# make compose-down +# make stop ``` ## Address @@ -27,11 +27,11 @@ Clone Eatvio: ``` Project up: ``` -# make compose-up +# make start ``` Project down: ``` -# make compose-down +# make stop ``` Generate key Laravel: ``` @@ -44,4 +44,4 @@ Permissions: Run migration: ``` # make run-migrations -``` \ No newline at end of file +```