refactor support.webeffector.ru
Go to file
mironov 606132d040 Merge pull request 'readMe' (#2) from init into main
Reviewed-on: #2
2024-06-13 17:10:42 +03:00
backend init 2024-06-13 17:07:58 +03:00
common init 2024-06-13 17:07:58 +03:00
console init 2024-06-13 17:07:58 +03:00
docker init 2024-06-13 17:07:58 +03:00
environments init 2024-06-13 17:07:58 +03:00
frontend init 2024-06-13 17:07:58 +03:00
vagrant init 2024-06-13 17:07:58 +03:00
.bowerrc init 2024-06-13 17:07:58 +03:00
.gitignore init 2024-06-13 17:07:58 +03:00
LICENSE.md init 2024-06-13 17:07:58 +03:00
README.md readMe 2024-06-13 17:10:28 +03:00
Vagrantfile init 2024-06-13 17:07:58 +03:00
codeception.yml init 2024-06-13 17:07:58 +03:00
composer.json init 2024-06-13 17:07:58 +03:00
composer.lock init 2024-06-13 17:07:58 +03:00
docker-compose.yml init 2024-06-13 17:07:58 +03:00
init init 2024-06-13 17:07:58 +03:00
init.bat init 2024-06-13 17:07:58 +03:00
requirements.php init 2024-06-13 17:07:58 +03:00
yii.bat init 2024-06-13 17:07:58 +03:00

README.md

Support WebEffector.ru

CodeStyle

DataBase => kebab_style

PHP => camelCaseStyle

Starting

Stack:

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

backend: admin.web.local

Url stage:

frontend: example.webeffector.ru

backend: admin-example.webeffector.ru

Test data for stage/dev:

- Администратор admin@web.local:admin
- Менеджер manager@web.local:manager
- Пользователь user@web.local:user