Merge pull request 'eatvio-infra' (#1) from eatvio-infra into main

Reviewed-on: https://gittea.eatv.io/alex_chevski/eatvio-infra/pulls/1
This commit is contained in:
2024-01-23 09:31:29 +00:00
2 changed files with 32 additions and 9 deletions

View File

@@ -3,15 +3,20 @@ 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
bash:
docker-compose exec php-fpm bash
tinker:
docker-compose exec php-fpm ./artisan tinker
@@ -42,8 +47,8 @@ seed-db:
fix-permissions:
docker-compose exec php-fpm chown -R www-data:www-data storage
lint-code-style:
docker-compose exec php-fpm composer php-cs-fixer fix
fix-code-style:
docker-compose exec php-fpm vendor/bin/pint
artisan:
docker-compose exec php-fpm ./artisan $(ARGS)
@@ -63,4 +68,22 @@ make-storage-link:
node-frontend-deps:
docker-compose exec php-fpm npm i --legacy-peer-deps
init: clone copy-infra-env compose-down compose-up setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations node-frontend-deps build-frontend-prod fix-permissions make-storage-link
test:
docker-compose exec php-fpm vendor/bin/phpunit
fix-insights:
docker-compose exec php-fpm ./artisan insights --fix
insights:
docker-compose exec php-fpm vendor/bin/phpinsights --config-path=./config/insights.php --no-interaction --min-quality=80 --min-complexity=90 --min-architecture=75 --min-style=95
rector:
docker-compose exec php-fpm vendor/bin/rector process --dry-run
static-analysis:
docker-compose exec php-fpm composer static-analysis
ci: test rector insights static-analysis
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
```
```