Merge pull request 'main' (#4) from eatvio/eatvio-infra:main into main

Reviewed-on: apoloz/eatvio-infra#4
This commit is contained in:
apoloz
2023-12-18 09:16:06 +00:00
2 changed files with 11 additions and 8 deletions

View File

@@ -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

View File

@@ -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
```
```