Yii v2 snippet guide III

Comparing #44 with #45

Revision #45 was created by rackycz rackycz on Mar 7, 2021, 7:24:17 PM.

Docker

Content

[...]
- Frontend: http://localhost:20080
- Backend: http://localhost:21080
- ... see docker-compose.yml to understand these port numbers

Open common/config/main-local.php and set following DB connection:
- host=
**mysql** !!
- dbname=yii2advanced
- username=yii2advanced
[...]
- If your DB has no password, adminer fill refuse to work. You would have to "crack" it.
- Use following login and go to DB yii2advanced:
- server=
**mysql** !!
- username=yii2advanced
- password=secret
- Values are taken from docker-compose.yml
- Set status=10 to your first user
[...]