new-support.webeffector.ru/README.md

88 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Support WebEffector.ru
-
## CodeStyle
DataBase => kebab_style
PHP => camelCaseStyle
## Starting
#### Stack:
- php 8.1.27
- mysql 8
- Docker [docker.com](https://www.docker.com/get-started/)
#### Docker
Init:
docker-compose run --rm php ./init --env=Development --overwrite
Composer install:
docker-compose run --rm php composer install
Run Yii migrations:
Init application
docker-compose run --rm php ./yii migrate 2
Init RBAC
docker-compose run --rm php ./yii migrate 4 --migrationPath=@yii/rbac/migrations
Migrate other
docker-compose run --rm php ./yii migrate
Dump:
docker ps
docker exec -it номеронтейнера_mysql bash
mysql -u root -proot db_name < /dump/dump.sql
### Use
Hosts:
127.0.0.1 web.local
127.0.0.1 admin.web.local
Up:
docker-compose up -d
Down:
docker-compose down
ReBuild without a cache:
docker-compose build --no-cache php
Url dev:
frontend: [web.local](http://web.local)
backend: [admin.web.local](http://admin.web.local)
Url stage:
frontend: [dev-php.webeffector.net/](https://dev-php.webeffector.net/)
backend: [admin-dev-php.webeffector.net/](https://admin-dev-php.webeffector.net/)
Test data for stage/dev:
- Администратор admin@web.local:admin
- Супервайзор supervisor@web.local:supervisor
- Менеджер manager@web.local:manager
- Пользователь customer@web.local:customer