refactor support.webeffector.ru
Go to file
mironov 6b1700cf56 Merge pull request 'init' (#4) from init into main
Reviewed-on: #4
2024-07-05 10:29:57 +03:00
backend schema 2024-07-04 06:42:20 +03:00
common init 2024-07-05 10:27:50 +03:00
console init 2024-07-05 10:27:50 +03:00
docker init 2024-07-05 10:29:14 +03:00
environments init 2024-07-05 10:27:50 +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-07-05 10:27:50 +03:00
LICENSE.md init 2024-06-13 17:07:58 +03:00
README.md init 2024-07-05 10:27:50 +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 schema 2024-07-04 06:42:20 +03:00
composer.lock init 2024-07-05 10:27:50 +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: dev-php.webeffector.net/

backend: 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